diff --git a/lib/src/Connection.dart b/lib/src/Connection.dart index 39b0edb..d6d7612 100644 --- a/lib/src/Connection.dart +++ b/lib/src/Connection.dart @@ -465,7 +465,7 @@ class Connection { if (userTimestampMap[mxid]["ts"] is int) { if (receiptStateContent[eventID] == null) receiptStateContent[eventID] = {"m.read": {}}; - else if (receiptStateContent[eventID]["m.read"]) + else if (receiptStateContent[eventID]["m.read"] == null) receiptStateContent[eventID]["m.read"] = {}; receiptStateContent[eventID]["m.read"][mxid] = { "ts": userTimestampMap[mxid]["ts"],