mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Clear message from chat box immediately on pressing enter
This commit is contained in:
parent
e1c14b0cf8
commit
e6c04bbeeb
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue