summary refs log tree commit diff
path: root/webclient/room/room-controller.js
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-06 17:48:16 -0700
committerEmmanuel ROHEE <manu@Emmanuels-MacBook-Pro.local>2014-09-08 11:28:51 +0200
commita0a609e8afad550be86bf47828315d727214026f (patch)
treed259ce088df47b4632a75898e46ead06b98895e1 /webclient/room/room-controller.js
parentfix desktop notifs, which were broken in eab463fd (diff)
downloadsynapse-a0a609e8afad550be86bf47828315d727214026f.tar.xz
fix embarassing bug where in-progress messages get vaped when the previous one gets delivered
Diffstat (limited to '')
-rw-r--r--webclient/room/room-controller.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index c702917fef..c8ca771b25 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -485,7 +485,9 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
             promise.then(
                 function() {
                     console.log("Request successfully sent");
-                    $scope.textInput = "";
+                    if (!echo) {
+                        $scope.textInput = "";
+                    }
 /*
                     if (echoMessage) {
                         // Remove the fake echo message from the room messages