Commit b791d920 authored by Wilko Manger's avatar Wilko Manger

Remove toJson from DisplayName & AvatarChangeEvent

parent 4ae55b9e
......@@ -310,18 +310,6 @@ class DisplayNameChangeEvent extends JoinEvent {
previousContent: previousContent,
stateKey: stateKey,
);
@override
Map<String, dynamic> toJson() => super.toJson()
..addAll({
'unsigned': {
'prev_content': {
'membership': 'join',
'displayname': oldSubjectName,
'avatar_url': content.avatarUrl?.toString(),
}
}
});
}
class AvatarChangeEvent extends JoinEvent {
......@@ -339,16 +327,4 @@ class AvatarChangeEvent extends JoinEvent {
previousContent: previousContent,
stateKey: stateKey,
);
@override
Map<String, dynamic> toJson() => super.toJson()
..addAll({
'unsigned': {
'prev_content': {
'membership': 'join',
'displayname': content.displayName,
'avatar_url': oldSubjectAvatarUrl?.toString(),
}
}
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment