mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 10:14:14 -04:00
Clean data when user logs out
This commit is contained in:
parent
cc2cee4af6
commit
3ed39ad20e
4 changed files with 36 additions and 11 deletions
|
@ -102,7 +102,7 @@ angular.module('RecentsController', ['matrixService', 'matrixFilter', 'eventHand
|
|||
}
|
||||
|
||||
return memberCount;
|
||||
}
|
||||
};
|
||||
|
||||
$scope.onInit = function() {
|
||||
// Init recents list only once
|
||||
|
@ -139,6 +139,11 @@ angular.module('RecentsController', ['matrixService', 'matrixFilter', 'eventHand
|
|||
}
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
// Clean data when user logs out
|
||||
$scope.$on(eventHandlerService.RESET_EVENT, function() {
|
||||
|
||||
delete $rootScope.rooms;
|
||||
});
|
||||
}]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue