mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 09:23:51 +01:00
Update IsFakeJID check to handle backfill end markers
This commit is contained in:
parent
10a7c781e6
commit
a40d143cef
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue