summary refs log tree commit diff
path: root/webclient
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-10-31 10:02:56 +0000
committerKegan Dougal <kegan@matrix.org>2014-10-31 10:02:56 +0000
commitbaf472f83f80ff9dc2294310435281e7a20c5e54 (patch)
tree1fa1a3faa0d5d023ae9ea54aa10e7210b66b6cad /webclient
parentSYWEB-12: You'll be needing this. (diff)
downloadsynapse-baf472f83f80ff9dc2294310435281e7a20c5e54.tar.xz
SYWEB-63: Fix desktop notification message when notifying for an image.
Diffstat (limited to 'webclient')
-rw-r--r--webclient/components/matrix/event-handler-service.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js
index 6f251eec56..45ee9e7567 100644
--- a/webclient/components/matrix/event-handler-service.js
+++ b/webclient/components/matrix/event-handler-service.js
@@ -258,6 +258,9 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
                     if (event.content.msgtype === "m.emote") {
                         message = "* " + displayname + " " + message;
                     }
+                    else if (event.content.msgtype === "m.image") {
+                        message = displayname + " sent an image.";
+                    }
 
                     var roomTitle = matrixService.getRoomIdToAliasMapping(event.room_id);
                     var theRoom = $rootScope.events.rooms[event.room_id];