diff --git a/src/app/commoncomponents/SBSMessageBase.qml b/src/app/commoncomponents/SBSMessageBase.qml index e458ec67164f962c352dcfdc972f0d69319b3d58..57baad6b5f52dadfea8c1f73d629077d3afb3f5f 100644 --- a/src/app/commoncomponents/SBSMessageBase.qml +++ b/src/app/commoncomponents/SBSMessageBase.qml @@ -607,7 +607,7 @@ Control { width: 12 height: 12 - visible: IsLastSent && !readsOne.visible + visible: IsLastSent === true && root.readers.length === 0 anchors.bottom: parent.bottom source: JamiResources.receive_svg @@ -618,13 +618,7 @@ Control { visible: root.readers.length === 1 && CurrentAccount.sendReadReceipt - width: { - if (root.readers.length === 0) - return 0; - var nbAvatars = root.readers.length; - var margin = JamiTheme.avatarReadReceiptSize / 3; - return nbAvatars * JamiTheme.avatarReadReceiptSize - (nbAvatars - 1) * margin; - } + width: JamiTheme.avatarReadReceiptSize height: JamiTheme.avatarReadReceiptSize anchors.bottom: parent.bottom @@ -648,14 +642,23 @@ Control { ReadStatus { id: readsMultiple - visible: root.readers.length > 1 && CurrentAccount.sendReadReceipt + visible: { + if (!readers) + return false; + return readers.length > 1 && CurrentAccount.sendReadReceipt; + } width: { - if (root.readers.length === 0) + if (readers.length === 0) return 0; - var nbAvatars = root.readers.length; + var nbAvatars = readers.length; var margin = JamiTheme.avatarReadReceiptSize / 3; return nbAvatars * JamiTheme.avatarReadReceiptSize - (nbAvatars - 1) * margin; } + height: { + if (readers.length === 0) + return 0; + return JamiTheme.avatarReadReceiptSize; + } anchors.right: parent.right anchors.top: parent.top diff --git a/src/app/net/jami/Constants/JamiTheme.qml b/src/app/net/jami/Constants/JamiTheme.qml index 0a228c1011c163b852991aab534c89e59692da9f..0735aa59244624cd794fa5d371074731a393ff2b 100644 --- a/src/app/net/jami/Constants/JamiTheme.qml +++ b/src/app/net/jami/Constants/JamiTheme.qml @@ -389,7 +389,7 @@ Item { property int mosaicButtonPreferredWidth: 70 property int mosaicButtonMaxWidth: 100 property real avatarPresenceRatio: 0.26 - property int avatarReadReceiptSize: 18 + property int avatarReadReceiptSize: 15 property int menuItemsPreferredWidth: 220 property int menuItemsPreferredHeight: 36