mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Hide incoming messages delivery status in groups if IMDN threshold is set to 1
This commit is contained in:
parent
fb323a4606
commit
9ffe3b4d7f
2 changed files with 3 additions and 1 deletions
|
|
@ -106,6 +106,8 @@ class MessageModel
|
|||
|
||||
val time = TimestampUtils.toString(timestamp)
|
||||
|
||||
val hideDeliveryStatus = !isOutgoing && coreContext.core.imdnToEverybodyThreshold == 1
|
||||
|
||||
val chatRoomIsReadOnly = chatMessage.chatRoom.isReadOnly ||
|
||||
(
|
||||
!chatMessage.chatRoom.hasCapability(ChatRoom.Capabilities.Encrypted.toInt()) && LinphoneUtils.getAccountForAddress(
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@
|
|||
android:paddingTop="2dp"
|
||||
android:contentDescription="@string/content_description_chat_bubble_delivery_status"
|
||||
android:src="@{model.statusIcon, default=@drawable/checks}"
|
||||
android:visibility="@{model.isFromGroup ? View.VISIBLE : View.GONE}"
|
||||
android:visibility="@{model.isFromGroup && !model.hideDeliveryStatus ? View.VISIBLE : View.GONE}"
|
||||
app:tint="?attr/color_main1_500" />
|
||||
|
||||
<ImageView
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue