mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 16:34:56 -04:00
Add support for room names
This commit is contained in:
parent
7fc84c7019
commit
073a42cc95
2 changed files with 20 additions and 2 deletions
|
@ -97,7 +97,12 @@ angular.module('matrixWebClient')
|
|||
// Else, build the name from its users
|
||||
var room = $rootScope.events.rooms[room_id];
|
||||
if (room) {
|
||||
if (room.members) {
|
||||
var room_name_event = room["m.room.name"];
|
||||
|
||||
if (room_name_event) {
|
||||
roomName = room_name_event.content.name;
|
||||
}
|
||||
else if (room.members) {
|
||||
// Limit the room renaming to 1:1 room
|
||||
if (2 === Object.keys(room.members).length) {
|
||||
for (var i in room.members) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue