From c618fd57b1b2c43706cc0ad019884c488d9cf213 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 23 Oct 2019 10:31:26 +0000 Subject: [PATCH] [Connection] Fix wrong null check --- lib/src/Connection.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/Connection.dart b/lib/src/Connection.dart index 39b0edb4..d6d76123 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"],