From 0ed22b67ab39dd15b695ba58c4621cd8db8f4d2e Mon Sep 17 00:00:00 2001 From: ZavaruKitsu Date: Sun, 29 Oct 2023 15:53:41 +0300 Subject: [PATCH] fix: make it compile --- .../ayu/ui/sections/edited/edited_log_inner.cpp | 2 +- .../ayu/ui/sections/edited/edited_log_inner.h | 2 +- Telegram/SourceFiles/history/history.cpp | 10 +++++----- Telegram/SourceFiles/history/history_item.cpp | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Telegram/SourceFiles/ayu/ui/sections/edited/edited_log_inner.cpp b/Telegram/SourceFiles/ayu/ui/sections/edited/edited_log_inner.cpp index 33e2b1995..3c03790c9 100644 --- a/Telegram/SourceFiles/ayu/ui/sections/edited/edited_log_inner.cpp +++ b/Telegram/SourceFiles/ayu/ui/sections/edited/edited_log_inner.cpp @@ -627,7 +627,7 @@ not_null InnerWidget::elementPathShiftGradient() return _pathGradient.get(); } -void InnerWidget::elementReplyTo(const FullMsgId &to) +void InnerWidget::elementReplyTo(const FullReplyTo &to) { } diff --git a/Telegram/SourceFiles/ayu/ui/sections/edited/edited_log_inner.h b/Telegram/SourceFiles/ayu/ui/sections/edited/edited_log_inner.h index 4028e35c3..78f6781ef 100644 --- a/Telegram/SourceFiles/ayu/ui/sections/edited/edited_log_inner.h +++ b/Telegram/SourceFiles/ayu/ui/sections/edited/edited_log_inner.h @@ -127,7 +127,7 @@ public: void elementHandleViaClick(not_null bot) override; bool elementIsChatWide() override; not_null elementPathShiftGradient() override; - void elementReplyTo(const FullMsgId &to) override; + void elementReplyTo(const FullReplyTo &to) override; void elementStartInteraction( not_null view) override; void elementStartPremium( diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index 8d8e337c1..41faa5535 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -511,11 +511,11 @@ void History::destroyMessage(not_null item) { flags |= MessageFlag::Post; } - FullReplyTo replyTo = { - .msgId = item->id, - .topicRootId = item->topicRootId(), - .storyId = {} - }; + FullReplyTo replyTo = { + .messageId = item->fullId(), + .storyId = {}, + .topicRootId = item->topicRootId(), + }; addNewLocalMessage( session().data().nextLocalMessageId(), diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 8bb03a0fe..61ca6e17f 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -2595,10 +2595,10 @@ void HistoryItem::setAyuHint(const QString &hint) { if (!msgsigned) { AddComponents(HistoryMessageSigned::Bit()); msgsigned = Get(); - } else if (msgsigned->author == hint) { + } else if (msgsigned->postAuthor == hint) { return; } - msgsigned->author = hint; + msgsigned->postAuthor = hint; msgsigned->isAnonymousRank = !isDiscussionPost() && this->author()->isMegagroup();