Don't set presence

pull/21833/head
Kegan Dougal 2016-01-05 13:24:05 +00:00
parent ae7b2d54bb
commit 8bd4fdbd5a
1 changed files with 5 additions and 0 deletions

View File

@ -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);