From cf1ae3b102f242d54c027ce73b3e490462d3623e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 16 Feb 2022 00:11:38 +0200 Subject: [PATCH] Fix check --- database/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/message.go b/database/message.go index 179012f..a73b4a1 100644 --- a/database/message.go +++ b/database/message.go @@ -150,7 +150,7 @@ func (msg *Message) IsFakeMXID() bool { } func (msg *Message) IsFakeJID() bool { - return strings.HasPrefix(msg.JID, "FAKE::") || msg.JID == msg.MXID + return strings.HasPrefix(msg.JID, "FAKE::") || msg.JID == string(msg.MXID) } func (msg *Message) Scan(row Scannable) *Message {