2
0
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:
John Preston
2018-11-15 19:36:04 +04:00
parent 60103f7ad6
commit 4960e08a24
20 changed files with 429 additions and 95 deletions

View File

@@ -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();
}