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:
parent
b516bd1005
commit
f811e45102
|
|
@ -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.
|
/// 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 {
|
class Event extends MatrixEvent {
|
||||||
User get sender => room.getUserByMXIDSync(senderId ?? '@unknown');
|
User get sender => room.getUserByMXIDSync(senderId ?? '@unknown:unknown');
|
||||||
|
|
||||||
@Deprecated('Use [originServerTs] instead')
|
@Deprecated('Use [originServerTs] instead')
|
||||||
DateTime get time => originServerTs;
|
DateTime get time => originServerTs;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue