From 7b98cb738f6f4a6a39756f39d68ffcb3eb4cd42f Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 2 Jun 2022 15:17:05 +0200 Subject: [PATCH] Do not use contact address but identity address when creating chat room from contact or history --- CHANGELOG.md | 6 ++++++ app/src/main/java/org/linphone/utils/LinphoneUtils.kt | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6519ba77c..8fbf9c9eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/src/main/java/org/linphone/utils/LinphoneUtils.kt b/app/src/main/java/org/linphone/utils/LinphoneUtils.kt index a49ba6357..f68c5b6da 100644 --- a/app/src/main/java/org/linphone/utils/LinphoneUtils.kt +++ b/app/src/main/java/org/linphone/utils/LinphoneUtils.kt @@ -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) {