Fix build with Xcode.

This commit is contained in:
John Preston 2023-10-11 08:43:32 +04:00
parent 6c19274eac
commit e13768ea50
4 changed files with 4 additions and 3 deletions

View file

@ -317,7 +317,7 @@ void ActivateBotCommand(ClickHandlerContext context, int row, int column) {
.peer = item->history()->peer, .peer = item->history()->peer,
.command = QString(button->text), .command = QString(button->text),
.context = item->fullId(), .context = item->fullId(),
.replyTo = replyTo, .replyTo = { replyTo },
}); });
} break; } break;

View file

@ -77,7 +77,7 @@ void ApplyPeerCloudDraft(
reply.quote.entities), reply.quote.entities),
}, },
.storyId = (reply.storyId .storyId = (reply.storyId
? FullStoryId(replyPeerId, reply.storyId) ? FullStoryId{ replyPeerId, reply.storyId }
: FullStoryId()), : FullStoryId()),
.topicRootId = topicRootId, .topicRootId = topicRootId,
}, },

View file

@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/ */
#pragma once #pragma once
#include "base/qt/qt_compare.h"
#include "data/data_peer_id.h" #include "data/data_peer_id.h"
#include "ui/text/text_entity.h" #include "ui/text/text_entity.h"

View file

@ -110,7 +110,7 @@ struct EntryState {
FilterId filterId = 0; FilterId filterId = 0;
FullReplyTo currentReplyTo; FullReplyTo currentReplyTo;
friend inline constexpr auto operator<=>(EntryState, EntryState) noexcept friend inline auto operator<=>(EntryState, EntryState) noexcept
= default; = default;
}; };