Avoid crashing if data source is not ready when translating Pills

This commit is contained in:
aringenbach
2023-03-23 14:30:17 +01:00
parent b9faccf6c1
commit 1a6cebe7de
@@ -387,6 +387,7 @@ extension RoomViewController: PermalinkReplacer {
public func postProcessMarkdown(in attributedString: NSAttributedString) -> NSAttributedString {
guard #available(iOS 15.0, *),
let roomDataSource,
let session = roomDataSource.mxSession,
let eventFormatter = roomDataSource.eventFormatter,
let roomState = roomDataSource.roomState else {