Update IsFakeJID check to handle backfill end markers

This commit is contained in:
Tulir Asokan 2022-02-16 00:05:23 +02:00
parent 10a7c781e6
commit a40d143cef

View file

@ -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 {