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

Add voice chat indicator in the chats list.

This commit is contained in:
John Preston
2020-12-02 13:52:19 +03:00
parent 00e4ef7701
commit fdbe6bdeb2
15 changed files with 556 additions and 194 deletions

View File

@@ -2181,6 +2181,15 @@ void Session::updateSendActionAnimation(
_sendActionAnimationUpdate.fire(std::move(update));
}
auto Session::speakingAnimationUpdated() const
-> rpl::producer<not_null<History*>> {
return _speakingAnimationUpdate.events();
}
void Session::updateSpeakingAnimation(not_null<History*> history) {
_speakingAnimationUpdate.fire_copy(history);
}
int Session::unreadBadge() const {
return computeUnreadBadge(_chatsList.unreadState());
}