From dd75a08e65efc7b691fa649dac8891d1fdd815d9 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 30 Sep 2020 15:47:42 +0300 Subject: [PATCH] Add comment, why reply_info never dropped. GitOrigin-RevId: 568023da3a41415bf48c7230cd32cb5b46b86cf8 --- td/telegram/MessageReplyInfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/td/telegram/MessageReplyInfo.cpp b/td/telegram/MessageReplyInfo.cpp index 4091761d9..b1ef96377 100644 --- a/td/telegram/MessageReplyInfo.cpp +++ b/td/telegram/MessageReplyInfo.cpp @@ -61,6 +61,10 @@ MessageReplyInfo::MessageReplyInfo(tl_object_ptr & } bool MessageReplyInfo::need_update_to(const MessageReplyInfo &other) const { + if (other.is_empty() && !is_empty()) { + // ignore updates to empty reply info, because we will hide the info ourselves + // return true; + } if (other.pts < pts) { return false; }