2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Add members link in info for channel admins.

This commit is contained in:
John Preston
2017-11-10 23:19:43 +04:00
parent a6df928d45
commit dbb011fc56
8 changed files with 79 additions and 24 deletions

View File

@@ -696,7 +696,8 @@ HistoryWidget::HistoryWidget(QWidget *parent, not_null<Window::Controller*> cont
| UpdateFlag::UserIsBlocked
| UpdateFlag::AdminsChanged
| UpdateFlag::MembersChanged
| UpdateFlag::UserOnlineChanged;
| UpdateFlag::UserOnlineChanged
| UpdateFlag::ChannelAmIn;
subscribe(Notify::PeerUpdated(), Notify::PeerUpdatedHandler(changes, [this](const Notify::PeerUpdate &update) {
if (update.peer == _peer) {
if (update.flags & UpdateFlag::ChannelRightsChanged) {
@@ -730,7 +731,8 @@ HistoryWidget::HistoryWidget(QWidget *parent, not_null<Window::Controller*> cont
if (update.flags & (UpdateFlag::UserIsBlocked
| UpdateFlag::AdminsChanged
| UpdateFlag::MembersChanged
| UpdateFlag::UserOnlineChanged)) {
| UpdateFlag::UserOnlineChanged
| UpdateFlag::ChannelAmIn)) {
handlePeerUpdate();
}
}