mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix build with Xcode.
This commit is contained in:
parent
9b576a13bc
commit
61a61669b6
2 changed files with 6 additions and 4 deletions
Telegram/SourceFiles/history
|
@ -86,8 +86,8 @@ using ItemPreview = HistoryView::ItemPreview;
|
|||
if (!m.hasMatch()) {
|
||||
return text;
|
||||
}
|
||||
const auto codeStart = m.capturedStart(1);
|
||||
const auto codeLength = m.capturedLength(1);
|
||||
const auto codeStart = int(m.capturedStart(1));
|
||||
const auto codeLength = int(m.capturedLength(1));
|
||||
auto i = text.entities.begin();
|
||||
const auto e = text.entities.end();
|
||||
while (i != e && i->offset() < codeStart) {
|
||||
|
|
|
@ -82,7 +82,6 @@ class Element;
|
|||
class Message;
|
||||
class Service;
|
||||
class ServiceMessagePainter;
|
||||
struct NotificationTextOptions;
|
||||
} // namespace HistoryView
|
||||
|
||||
class HistoryItem final : public RuntimeComposer<HistoryItem> {
|
||||
|
@ -361,7 +360,10 @@ public:
|
|||
};
|
||||
[[nodiscard]] QString notificationHeader() const;
|
||||
[[nodiscard]] TextWithEntities notificationText(
|
||||
NotificationTextOptions options = {}) const;
|
||||
NotificationTextOptions options) const;
|
||||
[[nodiscard]] TextWithEntities notificationText() const {
|
||||
return notificationText({});
|
||||
}
|
||||
|
||||
using ToPreviewOptions = HistoryView::ToPreviewOptions;
|
||||
using ItemPreview = HistoryView::ItemPreview;
|
||||
|
|
Loading…
Add table
Reference in a new issue