data_unread_value.h 736 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Dialogs {
  9. struct UnreadState;
  10. } // namespace Dialogs
  11. namespace Main {
  12. class Session;
  13. } // namespace Main
  14. namespace Data {
  15. [[nodiscard]] Dialogs::UnreadState MainListMapUnreadState(
  16. not_null<Main::Session*> session,
  17. const Dialogs::UnreadState &state);
  18. [[nodiscard]] rpl::producer<Dialogs::UnreadState> UnreadStateValue(
  19. not_null<Main::Session*> session,
  20. FilterId filterId);
  21. [[nodiscard]] rpl::producer<bool> IncludeMutedCounterFoldersValue();
  22. } // namespace Data