From a40d143cef4842d836e091f903f9694ce9d2148e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 16 Feb 2022 00:05:23 +0200 Subject: [PATCH] Update IsFakeJID check to handle backfill end markers --- database/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/message.go b/database/message.go index 4d8eadf..179012f 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::") + return strings.HasPrefix(msg.JID, "FAKE::") || msg.JID == msg.MXID } func (msg *Message) Scan(row Scannable) *Message {