Only mark messages as read, when room is active

remotes/origin/0.7.0-dev
Nicolas Werner 5 years ago
parent 5429b425e9
commit 7bd875004f
  1. 3
      src/timeline/TimelineModel.cpp

@ -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…
Cancel
Save