From 0ce9391ff11e6d81a00459a30b4b3319b2af7335 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 25 Nov 2021 11:45:42 +0300 Subject: [PATCH] Increase Chat/Channel cache version to get actual value of noforwards. --- td/telegram/ContactsManager.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/td/telegram/ContactsManager.h b/td/telegram/ContactsManager.h index cfe654a03..88592427a 100644 --- a/td/telegram/ContactsManager.h +++ b/td/telegram/ContactsManager.h @@ -719,11 +719,11 @@ class ContactsManager final : 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 = 3; + static constexpr uint32 CACHE_VERSION = 4; uint32 cache_version = 0; bool is_active = false; - bool noforwards = true; + bool noforwards = false; bool is_title_changed = true; bool is_photo_changed = true; @@ -792,14 +792,14 @@ class ContactsManager final : public Actor { int32 date = 0; int32 participant_count = 0; - static constexpr uint32 CACHE_VERSION = 7; + static constexpr uint32 CACHE_VERSION = 8; uint32 cache_version = 0; bool has_linked_channel = false; bool has_location = false; bool sign_messages = false; bool is_slow_mode_enabled = false; - bool noforwards = true; + bool noforwards = false; bool is_megagroup = false; bool is_gigagroup = false;