Simplify read message logic with inverted timeline
This commit is contained in:
parent
5af6f6528b
commit
51d7e64992
2 changed files with 13 additions and 47 deletions
|
|
@ -516,7 +516,7 @@ TimelineModel::setCurrentIndex(int index)
|
|||
currentId = indexToId(index);
|
||||
emit currentIndexChanged(index);
|
||||
|
||||
if (oldIndex < index && !pending.contains(currentId) &&
|
||||
if ((oldIndex > index || oldIndex == -1) && !pending.contains(currentId) &&
|
||||
ChatPage::instance()->isActiveWindow()) {
|
||||
readEvent(currentId.toStdString());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue