fix event.islocal
This commit is contained in:
@@ -32,13 +32,11 @@ class Event {
|
||||
});
|
||||
|
||||
/// Create a new instance from a json
|
||||
factory Event.fromJson(Map<String, dynamic> json) => _$EventFromJson({
|
||||
...Serialization.moveToExtraDataFromRoot(
|
||||
json,
|
||||
topLevelFields,
|
||||
),
|
||||
'is_local': false,
|
||||
});
|
||||
factory Event.fromJson(Map<String, dynamic> json) =>
|
||||
_$EventFromJson(Serialization.moveToExtraDataFromRoot(
|
||||
json,
|
||||
topLevelFields,
|
||||
));
|
||||
|
||||
/// The type of the event
|
||||
/// [EventType] contains some predefined constant types
|
||||
@@ -90,7 +88,7 @@ class Event {
|
||||
final String? parentId;
|
||||
|
||||
/// True if the event is generated by this client
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(defaultValue: false)
|
||||
final bool isLocal;
|
||||
|
||||
/// Map of custom channel extraData
|
||||
|
||||
Reference in New Issue
Block a user