fix(SipAddressesModel): handle correctly chat message changes (do not use from/to, use local/peer of ChatRoom)

This commit is contained in:
Ronan Abhamon 2018-08-23 10:27:43 +02:00
parent 839974f715
commit 275960f869

View file

@ -405,10 +405,8 @@ void SipAddressesModel::handleMessageCountReset (ChatModel *chatModel) {
}
void SipAddressesModel::handleMessageSent (const shared_ptr<linphone::ChatMessage> &message) {
addOrUpdateSipAddress(
Utils::coreStringToAppString(message->getToAddress()->asStringUriOnly()),
message
);
const QString localAddress(Utils::coreStringToAppString(message->getChatRoom()->getLocalAddress()->asStringUriOnly()));
addOrUpdateSipAddress(localAddress, message);
}
void SipAddressesModel::handlerIsComposingChanged (const shared_ptr<linphone::ChatRoom> &chatRoom) {