Presence fixes and improvements
- Allow using invisible mode on servers not supporting presence, to make use of the prevention of sending typing notifications and read marker updates - For servers not supporting presence, display the account's presence orb in the left pane with half opacity - Indicate in the presence orb tooltip when the presence we set hasn't yet been noticed by the server/the server doesn't support presence - When reconnecting after being offline, if the server doesn't indicate we have a status message [set from another client], restore any previous message we had set in the current client - Show our status message striked out when we're invisible or offline to indicate that it isn't being broadcasted - Some code style cleanups - Try to handle cases where we set a presence, but receive a new presence event for our account before the server takes notice of that new presence we want, which probably resulted in the "account keeps switching between online and unavailable every few sec" glitch
This commit is contained in:
@@ -35,10 +35,11 @@ Rectangle {
|
||||
|
||||
HToolTip {
|
||||
visible: presenceHover.hovered
|
||||
text:
|
||||
text: qsTr("%1 (%2)").arg(
|
||||
presence.includes("online") ? qsTr("Online") :
|
||||
presence.includes("unavailable") ? qsTr("Unavailable") :
|
||||
presence.includes("invisible") ? qsTr("Invisible") :
|
||||
qsTr("Offline")
|
||||
).arg("unknown to server")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user