[Connection] Fix wrong null check
This commit is contained in:
parent
6c2251ed7a
commit
c618fd57b1
|
@ -465,7 +465,7 @@ class Connection {
|
||||||
if (userTimestampMap[mxid]["ts"] is int) {
|
if (userTimestampMap[mxid]["ts"] is int) {
|
||||||
if (receiptStateContent[eventID] == null)
|
if (receiptStateContent[eventID] == null)
|
||||||
receiptStateContent[eventID] = {"m.read": {}};
|
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"] = {};
|
||||||
receiptStateContent[eventID]["m.read"][mxid] = {
|
receiptStateContent[eventID]["m.read"][mxid] = {
|
||||||
"ts": userTimestampMap[mxid]["ts"],
|
"ts": userTimestampMap[mxid]["ts"],
|
||||||
|
|
Loading…
Reference in a new issue