Do not use contact address but identity address when creating chat room from contact or history

This commit is contained in:
Sylvain Berfini 2022-06-02 15:17:05 +02:00
parent 1e50b65632
commit 7b98cb738f
2 changed files with 8 additions and 2 deletions

View file

@ -10,6 +10,12 @@ Group changes to describe their impact on the project, as follows:
Fixed for any bug fixes.
Security to invite users to upgrade in case of vulnerabilities.
## [4.6.10] - Unreleased
### Fixed
- Fixed contact address used instead of identity address when creating a basic chat room from history or contact details
- Fixed call notification still visible after call ended on some devices
## [4.6.9] - 2022-05-30
### Fixed

View file

@ -94,8 +94,8 @@ class LinphoneUtils {
val participants = arrayOf(participant)
return core.searchChatRoom(params, defaultAccount?.contactAddress, null, participants)
?: core.createChatRoom(params, defaultAccount?.contactAddress, participants)
return core.searchChatRoom(params, defaultAccount?.params?.identityAddress, null, participants)
?: core.createChatRoom(params, defaultAccount?.params?.identityAddress, participants)
}
fun deleteFilesAttachedToEventLog(eventLog: EventLog) {