diff options
author | Emma@Rory& <root@rory.gay> | 2023-08-14 19:46:33 +0200 |
---|---|---|
committer | Emma@Rory& <root@rory.gay> | 2023-08-14 19:46:33 +0200 |
commit | 83029c478f411bcadd3be53ac4dc53d88b3c8462 (patch) | |
tree | 279d62e53e55e862e4851f1447de12e47e3fce62 /MatrixRoomUtils.Web/Classes/RoomInfo.cs | |
parent | Add MxApiExtensions submodule (diff) | |
download | MatrixUtils-83029c478f411bcadd3be53ac4dc53d88b3c8462.tar.xz |
Code cleanup
Diffstat (limited to 'MatrixRoomUtils.Web/Classes/RoomInfo.cs')
-rw-r--r-- | MatrixRoomUtils.Web/Classes/RoomInfo.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MatrixRoomUtils.Web/Classes/RoomInfo.cs b/MatrixRoomUtils.Web/Classes/RoomInfo.cs index 4df81ec..111bfe0 100644 --- a/MatrixRoomUtils.Web/Classes/RoomInfo.cs +++ b/MatrixRoomUtils.Web/Classes/RoomInfo.cs @@ -11,10 +11,10 @@ public class RoomInfo { public async Task<StateEventResponse?> GetStateEvent(string type, string stateKey = "") { var @event = StateEvents.FirstOrDefault(x => x.Type == type && x.StateKey == stateKey); if (@event is not null) return @event; - @event = new StateEventResponse() { + @event = new StateEventResponse { RoomId = Room.RoomId, Type = type, - StateKey = stateKey, + StateKey = stateKey }; try { @event.TypedContent = await Room.GetStateAsync<object>(type, stateKey); |