fix: make it compile

This commit is contained in:
ZavaruKitsu 2023-10-29 15:53:41 +03:00
parent 53e4b685b4
commit 0ed22b67ab
4 changed files with 9 additions and 9 deletions

View file

@ -627,7 +627,7 @@ not_null<Ui::PathShiftGradient *> InnerWidget::elementPathShiftGradient()
return _pathGradient.get(); return _pathGradient.get();
} }
void InnerWidget::elementReplyTo(const FullMsgId &to) void InnerWidget::elementReplyTo(const FullReplyTo &to)
{ {
} }

View file

@ -127,7 +127,7 @@ public:
void elementHandleViaClick(not_null<UserData *> bot) override; void elementHandleViaClick(not_null<UserData *> bot) override;
bool elementIsChatWide() override; bool elementIsChatWide() override;
not_null<Ui::PathShiftGradient *> elementPathShiftGradient() override; not_null<Ui::PathShiftGradient *> elementPathShiftGradient() override;
void elementReplyTo(const FullMsgId &to) override; void elementReplyTo(const FullReplyTo &to) override;
void elementStartInteraction( void elementStartInteraction(
not_null<const HistoryView::Element *> view) override; not_null<const HistoryView::Element *> view) override;
void elementStartPremium( void elementStartPremium(

View file

@ -511,11 +511,11 @@ void History::destroyMessage(not_null<HistoryItem*> item) {
flags |= MessageFlag::Post; flags |= MessageFlag::Post;
} }
FullReplyTo replyTo = { FullReplyTo replyTo = {
.msgId = item->id, .messageId = item->fullId(),
.topicRootId = item->topicRootId(), .storyId = {},
.storyId = {} .topicRootId = item->topicRootId(),
}; };
addNewLocalMessage( addNewLocalMessage(
session().data().nextLocalMessageId(), session().data().nextLocalMessageId(),

View file

@ -2595,10 +2595,10 @@ void HistoryItem::setAyuHint(const QString &hint) {
if (!msgsigned) { if (!msgsigned) {
AddComponents(HistoryMessageSigned::Bit()); AddComponents(HistoryMessageSigned::Bit());
msgsigned = Get<HistoryMessageSigned>(); msgsigned = Get<HistoryMessageSigned>();
} else if (msgsigned->author == hint) { } else if (msgsigned->postAuthor == hint) {
return; return;
} }
msgsigned->author = hint; msgsigned->postAuthor = hint;
msgsigned->isAnonymousRank = !isDiscussionPost() msgsigned->isAnonymousRank = !isDiscussionPost()
&& this->author()->isMegagroup(); && this->author()->isMegagroup();