Updates based on comments.

This commit is contained in:
David Langley
2022-10-13 11:12:14 +01:00
parent 4cbef854c9
commit afc79005c6
7 changed files with 28 additions and 12 deletions
@@ -222,9 +222,8 @@ extension RoomDataSource {
return editableTextMessage
}
@objc func editableHtmlTextMessage(for event: MXEvent) -> String? {
let body: String = event.content["formatted_body"] as? String ?? event.content["body"] as? String ?? ""
return body
@objc func editableHtmlTextMessage(for event: MXEvent) -> String {
event.content["formatted_body"] as? String ?? event.content["body"] as? String ?? ""
}
}