Commit 6307a15e authored by Wilko Manger's avatar Wilko Manger

Fix and improve state event serialization

parent f59db282
......@@ -18,10 +18,10 @@ abstract class StateEvent extends RoomEvent {
Map<String, dynamic> toJson() => super.toJson()
..addAll({'state_key': stateKey})
..['state_key'] = stateKey
..['unsigned'] = {
'prev_content': previousContent?.toJson(),
/// Marker interface for all diffs for a [StateEvent]s
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