Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
linphone-android
Commits
c68db48d
Commit
c68db48d
authored
8 months ago
by
Sylvain Berfini
Browse files
Options
Download
Patches
Plain Diff
Speed up a bit conversation update security level
parent
e80c0e60
master
feature/show_unsecure_conversation_event_at_top
feature/use_theme_main_color_for_icon_and_splashscreen
fix/insistent_notification
fix/telecom_default_audio_endpoint
release/6.0
6.1.0-alpha
6.0.0
6.0.0-beta
1 merge request
!1393
Linphone 6.0.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/org/linphone/ui/main/contacts/model/ContactAvatarModel.kt
+8
-7
...org/linphone/ui/main/contacts/model/ContactAvatarModel.kt
with
8 additions
and
7 deletions
app/src/main/java/org/linphone/ui/main/contacts/model/ContactAvatarModel.kt
+
8
−
7
View file @
c68db48d
...
...
@@ -115,16 +115,17 @@ class ContactAvatarModel @WorkerThread constructor(val friend: Friend, val addre
var
lowestSecurityLevel
=
SecurityLevel
.
EndToEndEncryptedAndVerified
for
(
participant
in
chatRoom
.
participants
)
{
val
friend
=
coreContext
.
contactsManager
.
findContactByAddress
(
participant
.
address
)
if
(
friend
==
null
||
friend
.
securityLevel
==
SecurityLevel
.
None
)
{
val
avatar
=
coreContext
.
contactsManager
.
getContactAvatarModelForAddress
(
participant
.
address
)
val
level
=
avatar
.
trust
.
value
?:
SecurityLevel
.
None
if
(
level
==
SecurityLevel
.
None
)
{
lowestSecurityLevel
=
SecurityLevel
.
None
}
else
if
(
friend
.
securityL
evel
==
SecurityLevel
.
Unsafe
)
{
}
else
if
(
l
evel
==
SecurityLevel
.
Unsafe
)
{
lowestSecurityLevel
=
SecurityLevel
.
Unsafe
break
}
else
if
(
friend
.
securityLevel
==
SecurityLevel
.
EndToEndEncrypted
||
friend
.
securityLevel
==
SecurityLevel
.
PointToPointEncrypted
)
{
if
(
lowestSecurityLevel
!=
SecurityLevel
.
None
)
{
lowestSecurityLevel
=
SecurityLevel
.
EndToEndEncrypted
}
}
else
if
(
lowestSecurityLevel
!=
SecurityLevel
.
None
&&
level
!=
SecurityLevel
.
EndToEndEncryptedAndVerified
)
{
lowestSecurityLevel
=
SecurityLevel
.
EndToEndEncrypted
}
}
trust
.
postValue
(
lowestSecurityLevel
)
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets