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();
}
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;
bool elementIsChatWide() override;
not_null<Ui::PathShiftGradient *> elementPathShiftGradient() override;
void elementReplyTo(const FullMsgId &to) override;
void elementReplyTo(const FullReplyTo &to) override;
void elementStartInteraction(
not_null<const HistoryView::Element *> view) override;
void elementStartPremium(

View file

@ -511,11 +511,11 @@ void History::destroyMessage(not_null<HistoryItem*> 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(),

View file

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