From 95b20ea41c44097c6c7320ca66ac8b838abbb6eb Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 29 Aug 2019 11:55:12 +0200 Subject: [PATCH] [State] Fix stateKeyUser getter --- lib/src/RoomState.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/RoomState.dart b/lib/src/RoomState.dart index d1addab..105a140 100644 --- a/lib/src/RoomState.dart +++ b/lib/src/RoomState.dart @@ -64,6 +64,8 @@ class RoomState { /// the overwriting semantics for this piece of room state. final String stateKey; + User get stateKeyUser => room.states[stateKey]?.asUser ?? User(stateKey); + RoomState( {this.content, this.typeKey,