Only mark messages as read, when room is active
This commit is contained in:
parent
5429b425e9
commit
7bd875004f
@ -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 New Issue
Block a user