Log when presence is set.

This commit is contained in:
Kegan Dougal 2015-07-21 16:23:21 +01:00
parent 2698405e2f
commit e0496305aa
1 changed files with 3 additions and 1 deletions

View File

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