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:
@@ -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),
|
||||
|
Reference in New Issue
Block a user