mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 17:57:51 +00:00
Realtime update admin status in members list.
This commit is contained in:
@@ -340,6 +340,23 @@ rpl::producer<StoryUpdate> Changes::realtimeStoryUpdates(
|
||||
return _storyChanges.realtimeUpdates(flag);
|
||||
}
|
||||
|
||||
void Changes::chatAdminChanged(
|
||||
not_null<PeerData*> peer,
|
||||
not_null<UserData*> user,
|
||||
ChatAdminRights rights,
|
||||
QString rank) {
|
||||
_chatAdminChanges.fire({
|
||||
.peer = peer,
|
||||
.user = user,
|
||||
.rights = rights,
|
||||
.rank = std::move(rank),
|
||||
});
|
||||
}
|
||||
|
||||
rpl::producer<ChatAdminChange> Changes::chatAdminChanges() const {
|
||||
return _chatAdminChanges.events();
|
||||
}
|
||||
|
||||
void Changes::scheduleNotifications() {
|
||||
if (!_notify) {
|
||||
_notify = true;
|
||||
|
||||
Reference in New Issue
Block a user