[Connection] Add type check
This commit is contained in:
parent
f889925a9e
commit
a128497283
|
@ -461,7 +461,8 @@ class Connection {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (userTimestampMap[mxid].containsKey("ts")) {
|
||||
if (userTimestampMap[mxid] is Map<String, dynamic> &&
|
||||
userTimestampMap[mxid].containsKey("ts")) {
|
||||
receiptStateContent[mxid] = {
|
||||
"event_id": eventID,
|
||||
"ts": userTimestampMap[mxid]["ts"],
|
||||
|
|
Loading…
Reference in a new issue