Merge branch 'Store-fix-status-pass' into 'master'

[Store] Fix status passing.

See merge request famedly/famedlysdk!18
This commit is contained in:
Marcel 2019-06-26 17:17:18 +00:00
commit 9599e1a45c

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"];