[Event] Fix User
This commit is contained in:
parent
9a7a4bfd71
commit
453bdd0106
|
@ -43,7 +43,7 @@ class RawEvent {
|
|||
/// The user who has sent this event if it is not a global account data event.
|
||||
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
|
||||
/// account data.
|
||||
|
|
Loading…
Reference in a new issue