diff --git a/app/js/directives.js b/app/js/directives.js index a83978de..b0308f26 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -1582,8 +1582,6 @@ angular.module('myApp.directives', ['myApp.filters']) $(submitBtn).on('mousedown touchstart', onMessageSubmit) function onMessageSubmit (e) { - var self = this - $timeout(function () { updateValue() $scope.draftMessage.send() @@ -1592,7 +1590,7 @@ angular.module('myApp.directives', ['myApp.filters']) composerEmojiPanel.update() } - self.hideSuggestions() + composer.hideSuggestions() }, shouldFocusOnInteraction ? 0 : 100) return cancelEvent(e) }