mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 19:47:05 +03:00
SYWEB-63: Fix desktop notification message when notifying for an image.
This commit is contained in:
parent
86d3180666
commit
baf472f83f
1 changed files with 3 additions and 0 deletions
|
@ -258,6 +258,9 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
|
||||||
if (event.content.msgtype === "m.emote") {
|
if (event.content.msgtype === "m.emote") {
|
||||||
message = "* " + displayname + " " + message;
|
message = "* " + displayname + " " + message;
|
||||||
}
|
}
|
||||||
|
else if (event.content.msgtype === "m.image") {
|
||||||
|
message = displayname + " sent an image.";
|
||||||
|
}
|
||||||
|
|
||||||
var roomTitle = matrixService.getRoomIdToAliasMapping(event.room_id);
|
var roomTitle = matrixService.getRoomIdToAliasMapping(event.room_id);
|
||||||
var theRoom = $rootScope.events.rooms[event.room_id];
|
var theRoom = $rootScope.events.rooms[event.room_id];
|
||||||
|
|
Loading…
Reference in a new issue