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,
.command = QString(button->text),
.context = item->fullId(),
.replyTo = replyTo,
.replyTo = { replyTo },
});
} break;

View File

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

View File

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

View File

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