[RoomState] Fix asUser in State

This commit is contained in:
Christian Pauly 2019-08-29 10:29:00 +02:00
parent 2061b96992
commit cccc8d181a

View file

@ -36,7 +36,7 @@ class RoomState extends RawEvent {
/// the overwriting semantics for this piece of room state.
final String stateKey;
User get stateKeyUser => room.states[stateKey] ?? User(stateKey);
User get stateKeyUser => room.states[stateKey].asUser ?? User(stateKey);
RoomState(
{this.prevContent,