mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
emit event when user is synced and update code to use it
This commit is contained in:
@@ -68,6 +68,9 @@ angular.module('userServices', []).
|
||||
_.extend(user, data);
|
||||
$rootScope.$emit('userUpdated', user);
|
||||
}
|
||||
|
||||
// Emit event when user syncing ended
|
||||
$rootScope.$emit('userSynced');
|
||||
user._v = data._v;
|
||||
|
||||
// FIXME handle this somewhere else, we don't need to check every single time
|
||||
|
||||
Reference in New Issue
Block a user