Skip to content
Snippets Groups Projects
Commit aeaeceb9 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

Create room entries for public rooms too so their public state is transferred...

Create room entries for public rooms too so their public state is transferred over correctly when you join it.
parent 16f55d42
No related branches found
No related tags found
No related merge requests found
......@@ -517,6 +517,7 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
if (!visible) {
return;
}
initRoom(room_id);
var room = $rootScope.events.rooms[room_id];
if (room) {
......
......@@ -53,6 +53,8 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen
// Add room_alias & room_display_name members
angular.extend(room, matrixService.getRoomAliasAndDisplayName(room));
eventHandlerService.setRoomVisibility(room.room_id, "public");
}
}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment