mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Only mark messages as read, when room is active
This commit is contained in:
parent
5429b425e9
commit
7bd875004f
1 changed files with 2 additions and 1 deletions
|
@ -685,7 +685,8 @@ TimelineModel::setCurrentIndex(int index)
|
|||
currentId = indexToId(index);
|
||||
emit currentIndexChanged(index);
|
||||
|
||||
if (oldIndex < index && !pending.contains(currentId)) {
|
||||
if (oldIndex < index && !pending.contains(currentId) &&
|
||||
ChatPage::instance()->isActiveWindow()) {
|
||||
readEvent(currentId.toStdString());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue