@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 {
@Event.ToJson()} @code { [Parameter] public StateEventResponse Event { get; set; } private RoomMemberEventData? roomMemberData => Event.TypedContent as RoomMemberEventData; }