return whole group.chat after chat message is sent

This commit is contained in:
Matteo Pagliazzi
2013-11-06 21:27:24 +01:00
parent 5ebab59780
commit 3b18c322bc
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
if (_.isEmpty(message) || $scope._sending) return;
$scope._sending = true;
Groups.Group.postChat({gid: group._id, message:message}, undefined, function(data){
group.chat.unshift(data.message);
group.chat = data.chat;
$scope._chatMessage = '';
$scope._sending = false;
}, function(err){