2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Improve participants sorting in voice chats.

This commit is contained in:
John Preston
2021-03-17 20:37:29 +04:00
parent db7b61a77b
commit 0684db9bd8
5 changed files with 44 additions and 10 deletions

View File

@@ -262,6 +262,7 @@ void GroupCall::applyCallFields(const MTPDgroupCall &data) {
}
_joinMuted = data.is_join_muted();
_canChangeJoinMuted = data.is_can_change_join_muted();
_joinedToTop = !data.is_join_date_asc();
setServerParticipantsCount(data.vparticipants_count().v);
changePeerEmptyCallFlag();
_title = qs(data.vtitle().value_or_empty());
@@ -738,6 +739,10 @@ bool GroupCall::canChangeJoinMuted() const {
return _canChangeJoinMuted;
}
bool GroupCall::joinedToTop() const {
return _joinedToTop;
}
ApiWrap &GroupCall::api() const {
return _peer->session().api();
}