Fix build with Xcode.

This commit is contained in:
John Preston 2025-07-14 19:06:36 +04:00
parent c998352ab7
commit a770e47575
4 changed files with 6 additions and 4 deletions

View file

@ -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()),

View file

@ -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 {

View file

@ -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;

View file

@ -2192,7 +2192,7 @@ SelectedQuote Element::FindSelectedQuote(
++i;
}
}
return { item, result, modified.from, overflown };
return { item, { result, modified.from }, overflown };
}
TextSelection Element::FindSelectionFromQuote(