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 7e391ca518
commit 4723c5d9d0

View file

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