[State] Fix stateKeyUser getter
This commit is contained in:
parent
2314fa0e09
commit
95b20ea41c
|
@ -64,6 +64,8 @@ class RoomState {
|
||||||
/// the overwriting semantics for this piece of room state.
|
/// the overwriting semantics for this piece of room state.
|
||||||
final String stateKey;
|
final String stateKey;
|
||||||
|
|
||||||
|
User get stateKeyUser => room.states[stateKey]?.asUser ?? User(stateKey);
|
||||||
|
|
||||||
RoomState(
|
RoomState(
|
||||||
{this.content,
|
{this.content,
|
||||||
this.typeKey,
|
this.typeKey,
|
||||||
|
|
Loading…
Reference in a new issue