diff --git a/Telegram/SourceFiles/history/view/history_view_pinned_bar.cpp b/Telegram/SourceFiles/history/view/history_view_pinned_bar.cpp index a31713bbc..267a9513f 100644 --- a/Telegram/SourceFiles/history/view/history_view_pinned_bar.cpp +++ b/Telegram/SourceFiles/history/view/history_view_pinned_bar.cpp @@ -27,7 +27,7 @@ namespace { const auto poll = media ? media->poll() : nullptr; return Ui::MessageBarContent{ .id = item->id, - .text = item->inReplyText(), + .text = { item->inReplyText() }, }; } @@ -102,7 +102,7 @@ namespace { } auto load = rpl::make_producer([=](auto consumer) { consumer.put_next(Ui::MessageBarContent{ - .text = tr::lng_contacts_loading(tr::now), + .text = { tr::lng_contacts_loading(tr::now) }, }); const auto channel = id.channel ? session->data().channel(id.channel).get() diff --git a/Telegram/SourceFiles/history/view/history_view_pinned_bar.h b/Telegram/SourceFiles/history/view/history_view_pinned_bar.h index 0995d1cb5..d09394e7e 100644 --- a/Telegram/SourceFiles/history/view/history_view_pinned_bar.h +++ b/Telegram/SourceFiles/history/view/history_view_pinned_bar.h @@ -38,6 +38,9 @@ struct PinnedBarId { bool operator==(const PinnedBarId &other) const { return std::tie(message, type) == std::tie(other.message, other.type); } + bool operator!=(const PinnedBarId &other) const { + return !(*this == other); + } }; [[nodiscard]] rpl::producer PinnedBarContent( not_null session, diff --git a/Telegram/SourceFiles/platform/mac/file_bookmark_mac.h b/Telegram/SourceFiles/platform/mac/file_bookmark_mac.h index a60971184..e72a8b2c5 100644 --- a/Telegram/SourceFiles/platform/mac/file_bookmark_mac.h +++ b/Telegram/SourceFiles/platform/mac/file_bookmark_mac.h @@ -16,7 +16,7 @@ public: [[nodiscard]] bool check() const; bool enable() const; - void disable(); + void disable() const; [[nodiscard]] const QString &name(const QString &original) const; [[nodiscard]] QByteArray bookmark() const;