2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show emoji status in chats list / top bar.

This commit is contained in:
John Preston
2022-08-09 18:53:40 +03:00
parent 285ce81b7b
commit 21fd381778
17 changed files with 386 additions and 177 deletions

View File

@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/flat_map.h"
#include "dialogs/dialogs_key.h"
#include "ui/unread_badge.h"
namespace Main {
class Session;
@@ -188,6 +189,9 @@ public:
}
[[nodiscard]] const Ui::Text::String &chatListNameText() const;
[[nodiscard]] Ui::PeerBadge &chatListBadge() const {
return _chatListBadge;
}
protected:
void notifyUnreadStateChange(const UnreadState &wasState);
@@ -221,6 +225,7 @@ private:
uint64 _sortKeyInChatList = 0;
uint64 _sortKeyByDate = 0;
base::flat_map<FilterId, int> _pinnedIndex;
mutable Ui::PeerBadge _chatListBadge;
mutable Ui::Text::String _chatListNameText;
mutable int _chatListNameVersion = 0;
TimeId _timeId = 0;