|
|
@ -1377,13 +1377,10 @@ angular.module('myApp.controllers', ['myApp.i18n']) |
|
|
|
$scope.$on('user_update', angular.noop); |
|
|
|
$scope.$on('user_update', angular.noop); |
|
|
|
$scope.$on('ui_typing', onTyping); |
|
|
|
$scope.$on('ui_typing', onTyping); |
|
|
|
|
|
|
|
|
|
|
|
$scope.draftMessage = {text: ''}; |
|
|
|
$scope.draftMessage = {text: '', send: sendMessage}; |
|
|
|
$scope.$watch('draftMessage.text', onMessageChange); |
|
|
|
$scope.$watch('draftMessage.text', onMessageChange); |
|
|
|
$scope.$watch('draftMessage.files', onFilesSelected); |
|
|
|
$scope.$watch('draftMessage.files', onFilesSelected); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.sendMessage = sendMessage; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function sendMessage (e) { |
|
|
|
function sendMessage (e) { |
|
|
|
$scope.$broadcast('ui_message_before_send'); |
|
|
|
$scope.$broadcast('ui_message_before_send'); |
|
|
|
|
|
|
|
|
|
|
|