forked from MirrorHub/mautrix-whatsapp
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 {
|
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 {
|
func (msg *Message) Scan(row Scannable) *Message {
|
||||||
|
|
Loading…
Reference in a new issue