mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
do not sync party every time the page is opened, update chat in realtime
This commit is contained in:
@@ -98,8 +98,9 @@ angular.module('habitrpg')
|
||||
// When a new chat message is posted
|
||||
partyChannel.bind('new-chat', function (data) {
|
||||
Groups.party().then(function () {
|
||||
// Groups.data.party.chat.unshift(data);
|
||||
// Groups.data.party.chat.splice(200);
|
||||
// Update the party data
|
||||
Groups.data.party.chat.unshift(data);
|
||||
Groups.data.party.chat.splice(200);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user