Fix check

This commit is contained in:
Tulir Asokan 2022-02-16 00:11:38 +02:00
parent 78f666c9cd
commit cf1ae3b102

View file

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