mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
fix(SipAddressesModel): handle correctly chat message changes (do not use from/to, use local/peer of ChatRoom)
This commit is contained in:
parent
839974f715
commit
275960f869
1 changed files with 2 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue