parent
e2fc676c77
commit
7ddcab3902
2 changed files with 17 additions and 4 deletions
|
|
@ -735,14 +735,14 @@ TimelineModel::updateLastMessage()
|
|||
void
|
||||
TimelineModel::setCurrentIndex(int index)
|
||||
{
|
||||
if (!ChatPage::instance()->isActiveWindow())
|
||||
return;
|
||||
|
||||
auto oldIndex = idToIndex(currentId);
|
||||
currentId = indexToId(index);
|
||||
if (index != oldIndex)
|
||||
emit currentIndexChanged(index);
|
||||
|
||||
if (!ChatPage::instance()->isActiveWindow())
|
||||
return;
|
||||
|
||||
if (!currentId.startsWith("m")) {
|
||||
auto oldReadIndex =
|
||||
cache::getEventIndex(roomId().toStdString(), currentReadId.toStdString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue