mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Ignore version in groupCall updates.
Otherwise we may skip participants update that changes the version.
This commit is contained in:
parent
ef1d98f3cf
commit
cfd16c6f67
1 changed files with 4 additions and 3 deletions
|
@ -175,10 +175,12 @@ void GroupCall::applyUpdate(const MTPGroupCall &update) {
|
||||||
|
|
||||||
void GroupCall::applyCall(const MTPGroupCall &call, bool force) {
|
void GroupCall::applyCall(const MTPGroupCall &call, bool force) {
|
||||||
call.match([&](const MTPDgroupCall &data) {
|
call.match([&](const MTPDgroupCall &data) {
|
||||||
|
if (!_version) {
|
||||||
|
_version = data.vversion().v;
|
||||||
|
}
|
||||||
const auto title = qs(data.vtitle().value_or_empty());
|
const auto title = qs(data.vtitle().value_or_empty());
|
||||||
const auto changed = (_version != data.vversion().v)
|
const auto changed = (_joinMuted != data.is_join_muted())
|
||||||
|| (_fullCount.current() != data.vparticipants_count().v)
|
|| (_fullCount.current() != data.vparticipants_count().v)
|
||||||
|| (_joinMuted != data.is_join_muted())
|
|
||||||
|| (_canChangeJoinMuted != data.is_can_change_join_muted())
|
|| (_canChangeJoinMuted != data.is_can_change_join_muted())
|
||||||
|| (_title.current() != title);
|
|| (_title.current() != title);
|
||||||
if (!force && !changed) {
|
if (!force && !changed) {
|
||||||
|
@ -189,7 +191,6 @@ void GroupCall::applyCall(const MTPGroupCall &call, bool force) {
|
||||||
}
|
}
|
||||||
_joinMuted = data.is_join_muted();
|
_joinMuted = data.is_join_muted();
|
||||||
_canChangeJoinMuted = data.is_can_change_join_muted();
|
_canChangeJoinMuted = data.is_can_change_join_muted();
|
||||||
_version = data.vversion().v;
|
|
||||||
_fullCount = data.vparticipants_count().v;
|
_fullCount = data.vparticipants_count().v;
|
||||||
_title = title;
|
_title = title;
|
||||||
changePeerEmptyCallFlag();
|
changePeerEmptyCallFlag();
|
||||||
|
|
Loading…
Add table
Reference in a new issue