/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "ui/chat/message_bar.h" #include namespace Main { class Session; } // namespace Main namespace Ui { class IconButton; class PlainShadow; struct MessageBarContent; } // namespace Ui namespace HistoryView { [[nodiscard]] rpl::producer MessageBarContentByItemId( not_null session, FullMsgId id); enum class PinnedIdType; struct PinnedId { FullMsgId message; int index = 0; int count = 1; bool operator<(const PinnedId &other) const { return std::tie(message, index, count) < std::tie(other.message, other.index, other.count); } bool operator==(const PinnedId &other) const { return std::tie(message, index, count) == std::tie(other.message, other.index, other.count); } bool operator!=(const PinnedId &other) const { return !(*this == other); } }; [[nodiscard]] rpl::producer PinnedBarContent( not_null session, rpl::producer id); } // namespace HistoryView