Realtime update admin status in members list.

This commit is contained in:
John Preston
2025-06-05 16:09:41 +04:00
parent 03c24e2906
commit bfb4652425
6 changed files with 72 additions and 17 deletions
@@ -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;