mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Don't set presence
This commit is contained in:
parent
ae7b2d54bb
commit
8bd4fdbd5a
@ -73,6 +73,11 @@ class Presence {
|
||||
}
|
||||
var old_state = this.state;
|
||||
this.state = newState;
|
||||
|
||||
if (MatrixClientPeg.get().isGuest()) {
|
||||
return; // don't try to set presence when a guest; it won't work.
|
||||
}
|
||||
|
||||
var self = this;
|
||||
MatrixClientPeg.get().setPresence(this.state).done(function() {
|
||||
console.log("Presence: %s", newState);
|
||||
|
Loading…
Reference in New Issue
Block a user