mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 09:23:51 +01:00
Fix check
This commit is contained in:
parent
78f666c9cd
commit
cf1ae3b102
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::") || msg.JID == msg.MXID
|
||||
return strings.HasPrefix(msg.JID, "FAKE::") || msg.JID == string(msg.MXID)
|
||||
}
|
||||
|
||||
func (msg *Message) Scan(row Scannable) *Message {
|
||||
|
|
Loading…
Reference in a new issue