mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
better fix #1740
This commit is contained in:
@@ -83,13 +83,14 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
||||
$scope._sending = false;
|
||||
|
||||
$scope.postChat = function(group, message){
|
||||
console.log($scope._sending)
|
||||
if (_.isEmpty(message) || $scope._sending) return;
|
||||
$scope._sending = true;
|
||||
group.$postChat({message:message}, function(data){
|
||||
group.chat = data.chat;
|
||||
$scope._chatMessage = '';
|
||||
$scope._sending = false;
|
||||
}, function(err){
|
||||
$scope._sending = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user