@using MatrixRoomUtils.Core @using Microsoft.AspNetCore.Components @if (Event.membership"]!.GetValue() == "ban") { @Event.StateKey was banned } else if (Event.membership"]!.GetValue() == "invite") { @Event.StateKey was invited } else if (Event.membership"]!.GetValue() == "join") { @if (Event.ReplacesState != null) { @Event.StateKey changed their display name to @(Event.displayname"]!.GetValue()) } else { joined } } else if (Event.membership"]!.GetValue() == "leave") { @Event.StateKey left } else if (Event.membership"]!.GetValue() == "knock") { @Event.StateKey knocked } else { @Event.StateKey has an unknown state:
        @Event.ToJson()
    
} @code { [Parameter] public StateEvent Event { get; set; } }