vector-im/element-ios/issues/5298 - Added body message content keys and replaced plain string usages.

This commit is contained in:
Stefan Ceriu
2021-12-13 12:08:52 +02:00
committed by Stefan Ceriu
parent 9c66b5b7b1
commit 7826faf6ea
10 changed files with 16 additions and 16 deletions
@@ -1066,7 +1066,7 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
{
NSString *mediaName = [self accessibilityLabelForAttachmentType:self.attachment.type];
MXJSONModelSetString(accessibilityLabel, self.events.firstObject.content[@"body"]);
MXJSONModelSetString(accessibilityLabel, self.events.firstObject.content[kMXMessageBodyKey]);
if (accessibilityLabel)
{
accessibilityLabel = [NSString stringWithFormat:@"%@ %@", mediaName, accessibilityLabel];