[RoomState] Fix asUser in State
This commit is contained in:
parent
2061b96992
commit
cccc8d181a
|
@ -36,7 +36,7 @@ class RoomState extends RawEvent {
|
||||||
/// 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] ?? User(stateKey);
|
User get stateKeyUser => room.states[stateKey].asUser ?? User(stateKey);
|
||||||
|
|
||||||
RoomState(
|
RoomState(
|
||||||
{this.prevContent,
|
{this.prevContent,
|
||||||
|
|
Loading…
Reference in a new issue