vector-im/element-ios/issues/5298 - Replaced "msgtype" strings with new kMXMessageTypeKey.

This commit is contained in:
Stefan Ceriu
2021-12-13 10:04:30 +02:00
committed by Stefan Ceriu
parent 7f9e294d82
commit 5e3542a3dc
12 changed files with 19 additions and 21 deletions
@@ -91,7 +91,7 @@ NSString *const kMXKAttachmentFileNameBase = @"attatchment";
else
{
// Note: mxEvent.eventType is supposed to be MXEventTypeRoomMessage here.
NSString *msgtype = eventContent[@"msgtype"];
NSString *msgtype = eventContent[kMXMessageTypeKey];
if ([msgtype isEqualToString:kMXMessageTypeImage])
{
_type = MXKAttachmentTypeImage;