iOS: Removing event id links (#509)

* removing unused event id link

* changelog

* Revert "removing unused event id link"

This reverts commit aacd1124498674662123d5598604ef8bfcdfe02e.

* commented the event id add link code

* better changelog

* commenting a tes that is related to the use of event id links which we don't handle for now
This commit is contained in:
Velin92
2023-01-31 19:42:45 +01:00
committed by GitHub
parent f6629e0d6e
commit a8f154740e
3 changed files with 11 additions and 8 deletions
@@ -179,13 +179,14 @@ class AttributedStringBuilderTests: XCTestCase {
checkMatrixEntityLinkIn(attributedString: attributedStringBuilder.fromHTML(string), expected: roomId)
checkMatrixEntityLinkIn(attributedString: attributedStringBuilder.fromPlain(string), expected: roomId)
}
func testEventIdLink() {
let eventId = "$eventidentifier"
let string = "The event is \(eventId)."
checkMatrixEntityLinkIn(attributedString: attributedStringBuilder.fromHTML(string), expected: eventId)
checkMatrixEntityLinkIn(attributedString: attributedStringBuilder.fromPlain(string), expected: eventId)
}
// As of right now we do not handle event id links in any way so there is no need to add them as links
// func testEventIdLink() {
// let eventId = "$eventidentifier"
// let string = "The event is \(eventId)."
// checkMatrixEntityLinkIn(attributedString: attributedStringBuilder.fromHTML(string), expected: eventId)
// checkMatrixEntityLinkIn(attributedString: attributedStringBuilder.fromPlain(string), expected: eventId)
// }
func testDefaultFont() {
let htmlString = "<b>Test</b> <i>string</i>."