sync user n party chat system message

This commit is contained in:
Matteo Pagliazzi
2016-09-16 14:36:38 +02:00
parent 3b0e6e138a
commit a38f524d62

View File

@@ -139,6 +139,7 @@ angular.module('habitrpg')
// If a system message comes in, sync the party as quest status may have changed
if (chatData.uuid === 'system') {
$rootScope.User.sync();
Groups.party(true).then(function (syncedParty) {
// Assign and not replace so that all the references get the modifications
_.assign($rootScope.party, syncedParty);