mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent show empty conversations as end to end encrypted and trusted
This commit is contained in:
parent
d0c733e81b
commit
9504c6d1ca
1 changed files with 7 additions and 2 deletions
|
|
@ -115,8 +115,13 @@ class ContactAvatarModel
|
|||
else -> SecurityLevel.None
|
||||
}*/
|
||||
|
||||
var lowestSecurityLevel = SecurityLevel.EndToEndEncryptedAndVerified
|
||||
for (participant in chatRoom.participants) {
|
||||
val participants = chatRoom.participants
|
||||
var lowestSecurityLevel = if (participants.isEmpty()) {
|
||||
SecurityLevel.None
|
||||
} else {
|
||||
SecurityLevel.EndToEndEncryptedAndVerified
|
||||
}
|
||||
for (participant in participants) {
|
||||
val avatar = coreContext.contactsManager.getContactAvatarModelForAddress(
|
||||
participant.address
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue