mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Extend pinned messages support.
Support them in saved messages and normal groups.
This commit is contained in:
@@ -202,7 +202,7 @@ void Filler::addPinToggle() {
|
||||
|
||||
auto lifetime = Notify::PeerUpdateViewer(
|
||||
peer,
|
||||
Notify::PeerUpdate::Flag::PinnedChanged
|
||||
Notify::PeerUpdate::Flag::ChatPinnedChanged
|
||||
) | rpl::start_with_next([peer, pinAction, pinText] {
|
||||
auto isPinned = App::history(peer)->isPinnedDialog();
|
||||
pinAction->setText(pinText(isPinned));
|
||||
|
Reference in New Issue
Block a user