mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Respect global group read position in replies.
This commit is contained in:
@@ -1767,6 +1767,14 @@ MsgId History::loadAroundId() const {
|
||||
return MsgId(0);
|
||||
}
|
||||
|
||||
MsgId History::inboxReadTillId() const {
|
||||
return _inboxReadBefore.value_or(1) - 1;
|
||||
}
|
||||
|
||||
MsgId History::outboxReadTillId() const {
|
||||
return _outboxReadBefore.value_or(1) - 1;
|
||||
}
|
||||
|
||||
HistoryItem *History::lastAvailableMessage() const {
|
||||
return isEmpty() ? nullptr : blocks.back()->messages.back()->data().get();
|
||||
}
|
||||
|
Reference in New Issue
Block a user