Setup NSTextAttachmentViewProvider

This commit is contained in:
aringenbach
2022-04-27 11:55:23 +02:00
parent 5c0ed53401
commit 3d4657fc3b
12 changed files with 235 additions and 98 deletions
+5 -2
View File
@@ -86,9 +86,12 @@ static NSString *const kEventFormatterTimeFormat = @"HH:mm";
}
}
if (event.eventType == MXEventTypeRoomMessage)
if (@available(iOS 15.0, *))
{
string = [StringPillsUtils insertPillsIn:string withSession:mxSession andRoomState:roomState];
if (event.eventType == MXEventTypeRoomMessage)
{
string = [StringPillsUtils insertPillsIn:string withRoomState:roomState];
}
}
return string;