You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Fix presence exception. Yay, javascript.
This commit is contained in:
@@ -73,11 +73,12 @@ class Presence {
|
||||
}
|
||||
var old_state = this.state;
|
||||
this.state = newState;
|
||||
var self = this;
|
||||
MatrixClientPeg.get().setPresence(this.state).done(function() {
|
||||
console.log("Presence: %s", newState);
|
||||
}, function(err) {
|
||||
console.error("Failed to set presence: %s", err);
|
||||
this.state = old_state;
|
||||
self.state = old_state;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user