mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Display occupied chats using drafts for support.
This commit is contained in:
@@ -124,7 +124,8 @@ DialogsInner::DialogsInner(QWidget *parent, not_null<Window::Controller*> contro
|
||||
auto changes = UpdateFlag::ChatPinnedChanged
|
||||
| UpdateFlag::NameChanged
|
||||
| UpdateFlag::PhotoChanged
|
||||
| UpdateFlag::UserIsContact;
|
||||
| UpdateFlag::UserIsContact
|
||||
| UpdateFlag::OccupiedChanged;
|
||||
subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(changes, [this](const Notify::PeerUpdate &update) {
|
||||
if (update.flags & UpdateFlag::ChatPinnedChanged) {
|
||||
stopReorderPinned();
|
||||
@@ -132,7 +133,7 @@ DialogsInner::DialogsInner(QWidget *parent, not_null<Window::Controller*> contro
|
||||
if (update.flags & UpdateFlag::NameChanged) {
|
||||
handlePeerNameChange(update.peer, update.oldNameFirstLetters);
|
||||
}
|
||||
if (update.flags & UpdateFlag::PhotoChanged) {
|
||||
if (update.flags & (UpdateFlag::PhotoChanged | UpdateFlag::OccupiedChanged)) {
|
||||
this->update();
|
||||
emit App::main()->dialogsUpdated();
|
||||
}
|
||||
|
Reference in New Issue
Block a user