Skip to content
Snippets Groups Projects
Commit cdc5ffe2 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

show private room_ids rather than nulls in notifs if there is no room_alias

parent e37b040b
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,7 @@ angular.module('RoomController', ['ngSanitize'])
if (document.hidden) {
var notification = new window.Notification(
($scope.members[event.user_id].displayname || event.user_id) +
" (" + $scope.room_alias + ")",
" (" + ($scope.room_alias || $scope.room_id) + ")", // FIXME: don't leak room_ids here
{
"body": event.content.body,
"icon": $scope.members[event.user_id].avatar_url,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment