Message sent successfully: Send dataChanged event first
This commit is contained in:
parent
351c43b280
commit
7d78a2f126
1 changed files with 1 additions and 1 deletions
|
@ -213,8 +213,8 @@ void ChatModel::handleMessageSendSucceeded(const QString &messageId, const QStri
|
||||||
this->calculateMessageIndexMap();
|
this->calculateMessageIndexMap();
|
||||||
qDebug() << "[ChatModel] Message was replaced at index " << messageIndex;
|
qDebug() << "[ChatModel] Message was replaced at index " << messageIndex;
|
||||||
this->messagesMutex.unlock();
|
this->messagesMutex.unlock();
|
||||||
emit lastReadSentMessageUpdated(calculateLastReadSentMessageId());
|
|
||||||
emit dataChanged(index(messageIndex), index(messageIndex));
|
emit dataChanged(index(messageIndex), index(messageIndex));
|
||||||
|
emit lastReadSentMessageUpdated(calculateLastReadSentMessageId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue