Fix build on Xcode.

This commit is contained in:
John Preston 2025-01-15 12:10:48 +04:00
parent 530e2a1feb
commit 569dd19932
3 changed files with 4 additions and 4 deletions

View file

@ -877,7 +877,7 @@ int ColorSelector::resizeGetHeight(int newWidth) {
state->panel.show({
.controller = controller,
.button = right,
.ensureAddedEmojiId = state->emojiId,
.ensureAddedEmojiId = { state->emojiId },
.customTextColor = customTextColor,
.backgroundEmojiMode = true,
});
@ -990,7 +990,7 @@ int ColorSelector::resizeGetHeight(int newWidth) {
state->panel.show({
.controller = controller,
.button = right,
.ensureAddedEmojiId = state->statusId.documentId,
.ensureAddedEmojiId = { state->statusId },
.channelStatusMode = true,
});
}

View file

@ -51,7 +51,7 @@ public:
BadgeType badge = BadgeType::None;
EmojiStatusId emojiStatusId;
friend inline constexpr bool operator==(Content, Content) = default;
friend inline bool operator==(Content, Content) = default;
};
Badge(
not_null<QWidget*> parent,

View file

@ -312,7 +312,7 @@ Cover::Cover(
const auto info = peer->botVerifyDetails();
return Badge::Content{
.badge = info ? BadgeType::BotVerified : BadgeType::None,
.emojiStatusId = info ? info->iconId : DocumentId(),
.emojiStatusId = { info ? info->iconId : DocumentId() },
};
});
}