parent
0737034ea6
commit
1316d14f7a
|
@ -935,15 +935,15 @@ void RepliesList::readTill(not_null<HistoryItem*> item) {
|
|||
}
|
||||
|
||||
void RepliesList::readTill(MsgId tillId) {
|
||||
if (!IsServerMsgId(tillId)) {
|
||||
return;
|
||||
}
|
||||
readTill(tillId, _history->owner().message(_history->peer->id, tillId));
|
||||
}
|
||||
|
||||
void RepliesList::readTill(
|
||||
MsgId tillId,
|
||||
HistoryItem *tillIdItem) {
|
||||
if (!IsServerMsgId(tillId)) {
|
||||
return;
|
||||
}
|
||||
const auto was = computeInboxReadTillFull();
|
||||
const auto now = tillId;
|
||||
if (now < was) {
|
||||
|
|
|
@ -1962,7 +1962,11 @@ void ListWidget::checkActivation() {
|
|||
for (const auto &view : ranges::views::reverse(_items)) {
|
||||
const auto bottom = itemTop(view) + view->height();
|
||||
if (_visibleBottom + _itemsRevealHeight >= bottom) {
|
||||
delegate()->listMarkReadTill(view->data());
|
||||
const auto item = view->data();
|
||||
if (item->isRegular()) {
|
||||
delegate()->listMarkReadTill(item);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue