Bug fix and minor improvements

Improvements:
- Add instant feedback upon setting a different
  presence for account (local echo)
- Sort room members by power level and then
  presence
- Periodically update members' `last_acitve_at`
  field on the room pane
- Move status message field up on account context
  menu, and put invisible before offline again

Bug fix:
- Do not try to override presence set from
  another client, accept it
This commit is contained in:
vslg
2020-07-09 20:53:25 -03:00
committed by miruka
parent a3c9ac20c6
commit 43df8fd60b
6 changed files with 94 additions and 60 deletions

View File

@@ -71,12 +71,13 @@ HAvatar {
anchors.bottom: parent.bottom
anchors.right: parent.right
radius: diameter / 2
opacity: presence.includes("echo") ? 0.4 : 1
color:
presence === "online" ?
presence.includes("online") ?
theme.controls.presence.online :
presence === "unavailable" ?
presence.includes("unavailable") ?
theme.controls.presence.unavailable :
theme.controls.presence.offline
@@ -84,6 +85,9 @@ HAvatar {
border.color: theme.controls.presence.border
border.width: diameter / 10
Behavior on color { HColorAnimation {} }
Behavior on opacity { HNumberAnimation {} }
HoverHandler { id: presenceHover }
HToolTip {