From 5397fe43e0280b3e38e75aa1d546de2767eac8ca Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 1 May 2023 22:43:08 +0300 Subject: [PATCH] Ignore stored Message::have_previous/have_next flags. --- td/telegram/MessagesManager.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 31abc1782..b140865f2 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -4814,8 +4814,8 @@ void MessagesManager::Message::store(StorerT &storer) const { STORE_FLAG(from_background); STORE_FLAG(disable_web_page_preview); STORE_FLAG(clear_draft); - STORE_FLAG(have_previous); - STORE_FLAG(have_next); + STORE_FLAG(false); + STORE_FLAG(false); STORE_FLAG(has_sender); STORE_FLAG(has_edit_date); STORE_FLAG(has_random_id); @@ -5013,6 +5013,8 @@ void MessagesManager::Message::store(StorerT &storer) const { template void MessagesManager::Message::parse(ParserT &parser) { using td::parse; + bool legacy_have_previous; + bool legacy_have_next; bool has_sender; bool has_edit_date; bool has_random_id; @@ -5062,8 +5064,8 @@ void MessagesManager::Message::parse(ParserT &parser) { PARSE_FLAG(from_background); PARSE_FLAG(disable_web_page_preview); PARSE_FLAG(clear_draft); - PARSE_FLAG(have_previous); - PARSE_FLAG(have_next); + PARSE_FLAG(legacy_have_previous); + PARSE_FLAG(legacy_have_next); PARSE_FLAG(has_sender); PARSE_FLAG(has_edit_date); PARSE_FLAG(has_random_id);