@using LibMatrix.Extensions
@using ArcaneLibs.Extensions
@using LibMatrix.EventTypes.Spec.State
@inherits BaseTimelineItem
@if (roomMemberData is not null) {
@switch (roomMemberData.Membership) {
case "ban":
@Event.StateKey was banned
break;
case "invite":
@Event.StateKey was invited
break;
case "join" when Event.ReplacesState is not null:
@Event.StateKey changed their display name to @(roomMemberData.Displayname ?? Event.Sender)
break;
case "join":
@Event.ToJson()break; } } else {
@Event.ToJson()