2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 00:25:17 +00:00

Show chats list badge only for non-empty calls.

This commit is contained in:
John Preston
2020-12-06 17:28:27 +04:00
parent fa55fd7dd7
commit 732bc38e8e
8 changed files with 38 additions and 12 deletions

View File

@@ -3010,9 +3010,7 @@ void InnerWidget::userOnlineUpdated(not_null<PeerData*> peer) {
if (!history) {
return;
}
updateRowCornerStatusShown(
history,
Data::OnlineTextActive(user, base::unixtime::now()));
updateRowCornerStatusShown(history, Data::IsUserOnline(user));
}
void InnerWidget::groupHasCallUpdated(not_null<PeerData*> peer) {
@@ -3024,9 +3022,7 @@ void InnerWidget::groupHasCallUpdated(not_null<PeerData*> peer) {
if (!history) {
return;
}
updateRowCornerStatusShown(
history,
group->flags() & MTPDchannel::Flag::f_call_active);
updateRowCornerStatusShown(history, Data::ChannelHasActiveCall(group));
}
void InnerWidget::updateRowCornerStatusShown(