@using MatrixRoomUtils.Core.Responses @using MatrixRoomUtils.Core.StateEventTypes @if (roomMemberData.Membership == "ban") { @Event.StateKey was banned } else if (roomMemberData.Membership == "invite") { @Event.StateKey was invited } else if (roomMemberData.Membership == "join") { @if (Event.ReplacesState is not null) { @Event.StateKey changed their display name to @(roomMemberData.Displayname ?? Event.Sender) } else { joined } } else if (roomMemberData.Membership == "leave") { @Event.StateKey left } else if (roomMemberData.Membership == "knock") { @Event.StateKey knocked } else { @Event.StateKey has an unknown state:
        @Event.ToJson()
    
} @code { [Parameter] public StateEventResponse Event { get; set; } private RoomMemberEventData? roomMemberData => Event.TypedContent as RoomMemberEventData; }