Log when presence is set.

This commit is contained in:
Kegan Dougal 2015-07-21 16:23:21 +01:00
parent 2698405e2f
commit e0496305aa

View File

@ -76,7 +76,9 @@ module.exports = {
return; return;
} }
state = newState; 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); console.error("Failed to set presence: %s", err);
}); });
}, },