mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 17:13:31 -04:00
fix: change ordering when resolving presence
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ export class User {
|
||||
* Presence
|
||||
*/
|
||||
get presence() {
|
||||
return this.status?.presence ?? (this.online ? "Online" : "Invisible");
|
||||
return this.online ? this.status?.presence ?? "Online" : "Invisible";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user