From 8bd4fdbd5a98d9a2aa812e6c6e8f949b2736a073 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 5 Jan 2016 13:24:05 +0000 Subject: [PATCH] Don't set presence --- src/Presence.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Presence.js b/src/Presence.js index e776cca078..c3d6857e95 100644 --- a/src/Presence.js +++ b/src/Presence.js @@ -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);