mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 15:36:04 -04:00
Remove rootScope.presence and replaced with modelService.getUser/setUser.
This commit is contained in:
parent
afd2e214bc
commit
3916e23bbd
3 changed files with 23 additions and 13 deletions
|
@ -310,8 +310,9 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput', 'a
|
|||
}
|
||||
$scope.members[target_user_id] = chunk;
|
||||
|
||||
if (target_user_id in $rootScope.presence) {
|
||||
updatePresence($rootScope.presence[target_user_id]);
|
||||
var usr = modelService.getUser(target_user_id);
|
||||
if (usr) {
|
||||
updatePresence(usr.event);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue