Message sent successfully: Send dataChanged event first

This commit is contained in:
Sebastian Wolf 2020-11-13 23:39:27 +01:00
parent 351c43b280
commit 7d78a2f126

View file

@ -213,8 +213,8 @@ void ChatModel::handleMessageSendSucceeded(const QString &messageId, const QStri
this->calculateMessageIndexMap();
qDebug() << "[ChatModel] Message was replaced at index " << messageIndex;
this->messagesMutex.unlock();
emit lastReadSentMessageUpdated(calculateLastReadSentMessageId());
emit dataChanged(index(messageIndex), index(messageIndex));
emit lastReadSentMessageUpdated(calculateLastReadSentMessageId());
}
}