[Connection] Add type check

This commit is contained in:
Christian Pauly 2019-11-07 09:03:05 +00:00
parent f889925a9e
commit a128497283

View file

@ -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"],