close buttons on recents (SYWEB-68)

This commit is contained in:
Matthew Hodgson 2014-09-24 01:12:59 +01:00
parent 53841642a8
commit 7b8e24a588
3 changed files with 14 additions and 2 deletions

View file

@ -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() {