From 5268f83538082bd31cbb58746f752fca6150e973 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 15 Dec 2020 13:10:29 +0300 Subject: [PATCH] Increase chat/channel cache version to reload has_voice_chat flags. --- td/generate/scheme/td_api.tl | 2 +- td/telegram/ContactsManager.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 8a1e55ebd..946190b98 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -4365,7 +4365,7 @@ createVoiceChat chat_id:int53 = GroupCallId; //@description Returns information about a group call @group_call_id Group call identifier getGroupCall group_call_id:int32 = GroupCall; -//@description Joins a group call @group_call_id Group call identifier @payload Group join payload, received from tgcalls @source Caller synchronization source identifier; received from tgcalls @is_muted True, if the user's microphone is muted +//@description Joins a group call @group_call_id Group call identifier @payload Group join payload, received from tgcalls. Use null to cancel previous joinGroupCall request @source Caller synchronization source identifier; received from tgcalls @is_muted True, if the user's microphone is muted joinGroupCall group_call_id:int32 payload:groupCallPayload source:int32 is_muted:Bool = GroupCallJoinResponse; //@description Toggles whether new participants of a group call can be unmuted only by administrators of the group call. Requires can_manage_voice_chats rights in the corresponding chat and allowed_change_mute_mew_participants group call flag diff --git a/td/telegram/ContactsManager.h b/td/telegram/ContactsManager.h index 9db99e799..79d94ec1e 100644 --- a/td/telegram/ContactsManager.h +++ b/td/telegram/ContactsManager.h @@ -717,7 +717,7 @@ class ContactsManager : public Actor { DialogParticipantStatus status = DialogParticipantStatus::Banned(0); RestrictedRights default_permissions{false, false, false, false, false, false, false, false, false, false, false}; - static constexpr uint32 CACHE_VERSION = 2; + static constexpr uint32 CACHE_VERSION = 3; uint32 cache_version = 0; bool is_active = false; @@ -784,7 +784,7 @@ class ContactsManager : public Actor { int32 date = 0; int32 participant_count = 0; - static constexpr uint32 CACHE_VERSION = 5; + static constexpr uint32 CACHE_VERSION = 6; uint32 cache_version = 0; bool has_linked_channel = false;