Log when presence is set.
This commit is contained in:
parent
2698405e2f
commit
e0496305aa
|
@ -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);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue