Don't set presence
This commit is contained in:
parent
ae7b2d54bb
commit
8bd4fdbd5a
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue