From e0496305aa736a6f4ba09ec30dc5b8717c5a719a Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 21 Jul 2015 16:23:21 +0100 Subject: [PATCH] Log when presence is set. --- src/Presence.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Presence.js b/src/Presence.js index ce1d5d10..558c7e99 100644 --- a/src/Presence.js +++ b/src/Presence.js @@ -76,7 +76,9 @@ module.exports = { return; } state = newState; - MatrixClientPeg.get().setPresence(state).catch(function(err) { + MatrixClientPeg.get().setPresence(state).done(function() { + console.log("Presence: %s", newState); + }, function(err) { console.error("Failed to set presence: %s", err); }); },