Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
2b03107b
Commit
2b03107b
authored
1 year ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
ReadStatus: fix visibility for multiple readers
Change-Id: Iff3ff0a9ff7a8d7b175375582e6bd42937a80b1c
parent
cd1ab0ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/commoncomponents/SBSMessageBase.qml
+14
-11
14 additions, 11 deletions
src/app/commoncomponents/SBSMessageBase.qml
src/app/net/jami/Constants/JamiTheme.qml
+1
-1
1 addition, 1 deletion
src/app/net/jami/Constants/JamiTheme.qml
with
15 additions
and
12 deletions
src/app/commoncomponents/SBSMessageBase.qml
+
14
−
11
View file @
2b03107b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/app/net/jami/Constants/JamiTheme.qml
+
1
−
1
View file @
2b03107b
...
...
@@ -389,7 +389,7 @@ Item {
property
int
mosaicButtonPreferredWidth
:
70
property
int
mosaicButtonMaxWidth
:
100
property
real
avatarPresenceRatio
:
0.26
property
int
avatarReadReceiptSize
:
1
8
property
int
avatarReadReceiptSize
:
1
5
property
int
menuItemsPreferredWidth
:
220
property
int
menuItemsPreferredHeight
:
36
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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