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"
|
ide.$scope.$broadcast "chat:resetUnreadMessages"
|
||||||
|
|
||||||
$scope.sendMessage = ->
|
$scope.sendMessage = ->
|
||||||
|
message = $scope.newMessageContent
|
||||||
|
$scope.newMessageContent = ""
|
||||||
chatMessages
|
chatMessages
|
||||||
.sendMessage $scope.newMessageContent
|
.sendMessage message
|
||||||
.then () ->
|
|
||||||
$scope.newMessageContent = ""
|
|
||||||
|
|
||||||
$scope.loadMoreMessages = ->
|
$scope.loadMoreMessages = ->
|
||||||
chatMessages.loadMoreMessages()
|
chatMessages.loadMoreMessages()
|
||||||
|
|
Loading…
Reference in a new issue