Add offline presence text
This commit is contained in:
parent
215557e353
commit
8644ddaad4
|
@ -28,6 +28,7 @@ HTile {
|
||||||
}
|
}
|
||||||
|
|
||||||
HColumnLayout {
|
HColumnLayout {
|
||||||
|
HRowLayout {
|
||||||
TitleLabel {
|
TitleLabel {
|
||||||
text: model.display_name || model.id
|
text: model.display_name || model.id
|
||||||
color:
|
color:
|
||||||
|
@ -40,6 +41,17 @@ HTile {
|
||||||
Behavior on color { HColorAnimation {} }
|
Behavior on color { HColorAnimation {} }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TitleRightInfoLabel {
|
||||||
|
tile: member
|
||||||
|
text:
|
||||||
|
model.presence === "offline" &&
|
||||||
|
model.last_active_ago !== -1 ?
|
||||||
|
"offline for " +
|
||||||
|
utils.formatRelativeTime(model.last_active_ago) :
|
||||||
|
""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SubtitleLabel {
|
SubtitleLabel {
|
||||||
tile: member
|
tile: member
|
||||||
color: theme.chat.roomPane.listView.member.subtitle
|
color: theme.chat.roomPane.listView.member.subtitle
|
||||||
|
|
Loading…
Reference in New Issue
Block a user