mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Support tapping Matrix URIs in messages. (#2828)
This commit is contained in:
@@ -188,6 +188,12 @@ class AttributedStringBuilderTests: XCTestCase {
|
||||
checkLinkIn(attributedString: attributedStringBuilder.fromPlain(string), expectedLink: string, expectedRuns: 1)
|
||||
}
|
||||
|
||||
func testMatrixURI() {
|
||||
let string = "matrix:roomid/hello:matrix.org/e/world?via=matrix.org"
|
||||
checkLinkIn(attributedString: attributedStringBuilder.fromHTML(string), expectedLink: string, expectedRuns: 1)
|
||||
checkLinkIn(attributedString: attributedStringBuilder.fromPlain(string), expectedLink: string, expectedRuns: 1)
|
||||
}
|
||||
|
||||
func testUserIDLink() {
|
||||
let userID = "@user:matrix.org"
|
||||
let string = "The user is \(userID)."
|
||||
|
||||
Reference in New Issue
Block a user