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

View file

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

View file

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