mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Added party sync and request sync events (#8223)
* Added party sync and request sync events * Changed party member sync to be handled locally * Optimized assignment to only use member variables * Removed party sync event
This commit is contained in:
committed by
Matteo Pagliazzi
parent
3ea7b72024
commit
25c6691793
@@ -14,6 +14,10 @@ habitrpg.controller('NotificationCtrl',
|
||||
if (after == before) return;
|
||||
if (User.user.stats.lvl == 0) return;
|
||||
Notification.hp(after - before, 'hp');
|
||||
$rootScope.$broadcast('syncPartyRequest', {
|
||||
type: 'user_update',
|
||||
user: User.user,
|
||||
}); // Sync party to update members
|
||||
if (after < 0) $rootScope.playSound('Minus_Habit');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user