mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-24 14:33:02 +02:00
Fix build with Xcode.
This commit is contained in:
parent
c998352ab7
commit
a770e47575
4 changed files with 6 additions and 4 deletions
|
@ -378,7 +378,7 @@ void CreateModerateMessagesBox(
|
|||
rpl::conditional(
|
||||
(ownedWrap
|
||||
? ownedWrap->toggledValue()
|
||||
: rpl::single(false)),
|
||||
: rpl::single(false) | rpl::type_erased()),
|
||||
tr::lng_restrict_user(
|
||||
lt_count,
|
||||
rpl::single(participants.size()) | tr::to_count()),
|
||||
|
|
|
@ -180,6 +180,9 @@ struct MessageHighlightId {
|
|||
[[nodiscard]] bool empty() const {
|
||||
return quote.empty() && !todoItemId;
|
||||
}
|
||||
[[nodiscard]] friend inline bool operator==(
|
||||
const MessageHighlightId &a,
|
||||
const MessageHighlightId &b) = default;
|
||||
};
|
||||
|
||||
struct FullReplyTo {
|
||||
|
|
|
@ -718,8 +718,7 @@ void DraftOptionsBox(
|
|||
state->link = args.usedLink;
|
||||
state->quote = SelectedQuote{
|
||||
replyItem,
|
||||
draft.reply.quote,
|
||||
draft.reply.quoteOffset,
|
||||
{ draft.reply.quote, draft.reply.quoteOffset },
|
||||
};
|
||||
state->forward = std::move(args.forward);
|
||||
state->webpage = draft.webpage;
|
||||
|
|
|
@ -2192,7 +2192,7 @@ SelectedQuote Element::FindSelectedQuote(
|
|||
++i;
|
||||
}
|
||||
}
|
||||
return { item, result, modified.from, overflown };
|
||||
return { item, { result, modified.from }, overflown };
|
||||
}
|
||||
|
||||
TextSelection Element::FindSelectionFromQuote(
|
||||
|
|
Loading…
Add table
Reference in a new issue