2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added ability to update pinned dialogs.

This commit is contained in:
23rd
2019-05-02 16:26:47 +03:00
committed by John Preston
parent c424607603
commit 62a6812259
4 changed files with 37 additions and 15 deletions

View File

@@ -157,7 +157,9 @@ void TogglePinnedDialog(Dialogs::Key key) {
history->session().api().request(MTPmessages_ToggleDialogPin(
MTP_flags(flags),
MTP_inputDialogPeer(key.history()->peer->input)
)).send();
)).done([=](const MTPBool &result) {
Auth().data().notifyPinnedDialogsOrderUpdated();
}).send();
} else if (const auto folder = key.folder()) {
folder->session().api().request(MTPmessages_ToggleDialogPin(
MTP_flags(flags),