mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Log when presence is set.
This commit is contained in:
parent
2698405e2f
commit
e0496305aa
@ -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);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user