mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 14:25:01 -04:00
close buttons on recents (SYWEB-68)
This commit is contained in:
parent
53841642a8
commit
7b8e24a588
3 changed files with 14 additions and 2 deletions
|
@ -67,6 +67,16 @@ angular.module('MatrixWebClientController', ['matrixService', 'mPresence', 'even
|
|||
}
|
||||
};
|
||||
|
||||
$scope.leave = function(room_id) {
|
||||
matrixService.leave(room_id).then(
|
||||
function(response) {
|
||||
console.log("Left room " + room_id);
|
||||
},
|
||||
function(error) {
|
||||
console.log("Failed to leave room " + room_id + ": " + error.data.error);
|
||||
});
|
||||
};
|
||||
|
||||
// Logs the user out
|
||||
$scope.logout = function() {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue