mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Received messages are not marked as read while scroll is at the top.
HistoryToEnd button is always shown if there are unread messages. HistoryToEnd button displayes unread messages count. New service message (HistoryCleared) is handled (not displayed at all).
This commit is contained in:
@@ -227,6 +227,8 @@ public:
|
||||
bool isEmpty() const {
|
||||
return blocks.isEmpty();
|
||||
}
|
||||
bool isDisplayedEmpty() const;
|
||||
|
||||
void clear(bool leaveItems = false);
|
||||
|
||||
virtual ~History();
|
||||
@@ -1423,6 +1425,10 @@ public:
|
||||
return _flags & MTPDmessage_ClientFlag::f_attach_to_previous;
|
||||
}
|
||||
|
||||
bool isEmpty() const {
|
||||
return _text.isEmpty() && !_media;
|
||||
}
|
||||
|
||||
void clipCallback(ClipReaderNotification notification);
|
||||
|
||||
virtual ~HistoryItem();
|
||||
|
Reference in New Issue
Block a user