[State] Fix stateKeyUser getter

This commit is contained in:
Christian Pauly 2019-08-29 11:55:12 +02:00
parent 2314fa0e09
commit 95b20ea41c
1 changed files with 2 additions and 0 deletions

View File

@ -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,