MESSENGER-5570 acl status events up to collapsability

This commit is contained in:
Frank Rotermund
2024-02-21 16:50:20 +01:00
parent f9f3b69763
commit 4aaf86e41e
9 changed files with 90 additions and 10 deletions
@@ -323,7 +323,7 @@ static NSString *const kRepliedTextPattern = @"<mx-reply>.*<blockquote>.*<br>(.*
{
// Check we can output the error
NSParameterAssert(error);
*error = MXKEventFormatterErrorNone;
// Filter the events according to their type.
@@ -1673,6 +1673,10 @@ static NSString *const kRepliedTextPattern = @"<mx-reply>.*<blockquote>.*<br>(.*
displayText = [MXBeaconInfo modelFromJSON:event.content].desc;
break;
}
case MXEventTypeRoomServerACL: {
displayText = [[[FederationEventHelper alloc] init] statusInTimelineForEventWithEvent:event];
break;
}
default:
*error = MXKEventFormatterErrorUnknownEventType;
break;