diff --git a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp index c0d4a7db49..4b7fab7d52 100644 --- a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp @@ -1094,7 +1094,6 @@ void EmojiListWidget::fillCloudSearchSets() { return; } const auto &sets = session().data().stickers().sets(); - const auto test = session().isTestMode(); for (const auto setId : it->second) { const auto setIt = sets.find(setId); if (setIt == sets.end()) { diff --git a/Telegram/SourceFiles/history/history_streamed_drafts.cpp b/Telegram/SourceFiles/history/history_streamed_drafts.cpp index d719e81dcc..7459825658 100644 --- a/Telegram/SourceFiles/history/history_streamed_drafts.cpp +++ b/Telegram/SourceFiles/history/history_streamed_drafts.cpp @@ -35,6 +35,9 @@ void HistoryStreamedDrafts::apply( PeerId fromId, TimeId when, const MTPDsendMessageTextDraftAction &data) { + const auto replyToId = rootId + ? FullMsgId(_history->peer->id, rootId) + : FullMsgId(); if (!rootId) { rootId = Data::ForumTopic::kGeneralId; } @@ -56,6 +59,7 @@ void HistoryStreamedDrafts::apply( .flags = MessageFlag::Local | MessageFlag::HasReplyInfo, .from = fromId, .replyTo = { + .messageId = replyToId, .topicRootId = rootId, }, .date = when,