fix: events with unknown users having invalid mxids

This caused issues down the line where the sender id was assumed to
be a valid matrix identifier
This commit is contained in:
Sorunome 2021-09-22 14:17:49 +02:00 committed by Nicolas Werner
parent b516bd1005
commit f811e45102
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ abstract class RelationshipTypes {
/// All data exchanged over Matrix is expressed as an "event". Typically each client action (e.g. sending a message) correlates with exactly one event.
class Event extends MatrixEvent {
User get sender => room.getUserByMXIDSync(senderId ?? '@unknown');
User get sender => room.getUserByMXIDSync(senderId ?? '@unknown:unknown');
@Deprecated('Use [originServerTs] instead')
DateTime get time => originServerTs;