Merge branch 'Store-fix-status-pass' into 'master'
[Store] Fix status passing. See merge request famedly/famedlysdk!18
This commit is contained in:
commit
9599e1a45c
|
@ -207,6 +207,8 @@ class Store {
|
||||||
if (type == "timeline" || type == "history") {
|
if (type == "timeline" || type == "history") {
|
||||||
// calculate the status
|
// calculate the status
|
||||||
num status = 2;
|
num status = 2;
|
||||||
|
if (eventContent["status"] is num) status = eventContent["status"];
|
||||||
|
|
||||||
// Make unsigned part of the content
|
// Make unsigned part of the content
|
||||||
if (eventContent["unsigned"] is Map<String, dynamic>)
|
if (eventContent["unsigned"] is Map<String, dynamic>)
|
||||||
eventContent["content"]["unsigned"] = eventContent["unsigned"];
|
eventContent["content"]["unsigned"] = eventContent["unsigned"];
|
||||||
|
|
Loading…
Reference in a new issue