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

Add edit / view of user information for support.

This commit is contained in:
John Preston
2018-11-20 19:36:36 +04:00
parent 5e1b8212b2
commit 9a8ab84ecb
13 changed files with 407 additions and 43 deletions

View File

@@ -126,7 +126,7 @@ DialogsInner::DialogsInner(QWidget *parent, not_null<Window::Controller*> contro
| UpdateFlag::NameChanged
| UpdateFlag::PhotoChanged
| UpdateFlag::UserIsContact
| UpdateFlag::OccupiedChanged;
| UpdateFlag::UserOccupiedChanged;
subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(changes, [this](const Notify::PeerUpdate &update) {
if (update.flags & UpdateFlag::ChatPinnedChanged) {
stopReorderPinned();
@@ -134,7 +134,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 | UpdateFlag::OccupiedChanged)) {
if (update.flags & (UpdateFlag::PhotoChanged | UpdateFlag::UserOccupiedChanged)) {
this->update();
emit App::main()->dialogsUpdated();
}