mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Workaround to display basic/not secured conversation if unread count > 0
This commit is contained in:
parent
5aaa174b20
commit
f623de53d4
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class ConversationsListViewModel @UiThread constructor() : AbstractTopBarViewMod
|
|||
for (chatRoom in chatRooms) {
|
||||
// TODO: remove when SDK will do it automatically
|
||||
if (account?.isInSecureMode() == true) {
|
||||
if (!chatRoom.hasCapability(Capabilities.Encrypted.toInt())) {
|
||||
if (!chatRoom.hasCapability(Capabilities.Encrypted.toInt()) && chatRoom.unreadMessagesCount == 0) { // TODO: remove message count check later
|
||||
Log.w(
|
||||
"$TAG Skipping chat room [${LinphoneUtils.getChatRoomId(chatRoom)}] as it is not E2E encrypted and default account requires it"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue