Don't set presence

This commit is contained in:
Kegan Dougal 2016-01-05 13:24:05 +00:00
parent ae7b2d54bb
commit 8bd4fdbd5a

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