mirror of https://github.com/vector-im/riot-web
				
				
				
			check room exists
							parent
							
								
									fe71c17bb7
								
							
						
					
					
						commit
						be3d12721c
					
				|  | @ -243,6 +243,9 @@ export function makeRoomPermalink(roomId) { | |||
| 
 | ||||
|     const client = MatrixClientPeg.get(); | ||||
|     const room = client.getRoom(roomId); | ||||
|     if (!room) { | ||||
|         return permalinkBase; | ||||
|     } | ||||
|     const permalinkCreator = new RoomPermalinkCreator(room); | ||||
|     permalinkCreator.load(); | ||||
|     return permalinkCreator.forRoom(); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Bruno Windels
						Bruno Windels