[Store] Fix status passing.

This commit is contained in:
Christian Pauly 2019-06-26 19:12:26 +02:00
parent 294903d466
commit aec583f75d

View file

@ -207,6 +207,8 @@ class Store {
if (type == "timeline" || type == "history") {
// calculate the status
num status = 2;
if (eventContent["status"] is num) status = eventContent["status"];
// Make unsigned part of the content
if (eventContent["unsigned"] is Map<String, dynamic>)
eventContent["content"]["unsigned"] = eventContent["unsigned"];