diff --git a/services/web/public/coffee/ide/chat/controllers/ChatController.coffee b/services/web/public/coffee/ide/chat/controllers/ChatController.coffee index ec06f3ca64..0089783cd4 100644 --- a/services/web/public/coffee/ide/chat/controllers/ChatController.coffee +++ b/services/web/public/coffee/ide/chat/controllers/ChatController.coffee @@ -21,10 +21,10 @@ define [ ide.$scope.$broadcast "chat:resetUnreadMessages" $scope.sendMessage = -> + message = $scope.newMessageContent + $scope.newMessageContent = "" chatMessages - .sendMessage $scope.newMessageContent - .then () -> - $scope.newMessageContent = "" + .sendMessage message $scope.loadMoreMessages = -> chatMessages.loadMoreMessages()