Tapping on room link (with roomID) (#1853)

* room linking

* chagelog
This commit is contained in:
Mauro
2023-10-04 15:47:57 +02:00
committed by GitHub
parent e065f9d3a2
commit dce94e7d7d
4 changed files with 16 additions and 2 deletions
@@ -120,4 +120,16 @@ class AppRouteURLParserTests: XCTestCase {
XCTAssertEqual(route, .roomMemberDetails(userID: userID))
}
func testMatrixRoomIdentifierURL() {
let id = "!abcdefghijklmnopqrstuvwxyz1234567890:matrix.org"
guard let url = URL(string: "\(appSettings.permalinkBaseURL)/#/\(id)") else {
XCTFail("Invalid url")
return
}
let route = appRouteURLParser.route(from: url)
XCTAssertEqual(route, .room(roomID: id))
}
}