[Store] Fix status passing.
This commit is contained in:
parent
294903d466
commit
aec583f75d
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue