[Event] Fix User

This commit is contained in:
Christian Pauly 2019-08-28 11:39:34 +02:00
parent 9a7a4bfd71
commit 453bdd0106

View file

@ -43,7 +43,7 @@ class RawEvent {
/// The user who has sent this event if it is not a global account data event. /// The user who has sent this event if it is not a global account data event.
final String senderId; final String senderId;
User get sender => room.states[senderId] ?? User(senderId); User get sender => room.states[senderId].asUser ?? User(senderId);
/// The time this event has received at the server. May be null for events like /// The time this event has received at the server. May be null for events like
/// account data. /// account data.