mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2025-01-19 02:41:57 +01:00
Merge pull request #533 from mautrix/fix-test
Fix the FindPrivateChats SELECT statement
This commit is contained in:
commit
8cc1ad85ba
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ func (pq *PortalQuery) GetAllByJID(jid types.JID) []*Portal {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pq *PortalQuery) FindPrivateChats(receiver types.JID) []*Portal {
|
func (pq *PortalQuery) FindPrivateChats(receiver types.JID) []*Portal {
|
||||||
return pq.getAll(fmt.Sprintf("SELECT %s FROM portal WHERE receiver=$1 AND jid LIKE '%@s.whatsapp.net'", portalColumns), receiver.ToNonAD())
|
return pq.getAll(fmt.Sprintf("SELECT %s FROM portal WHERE receiver=$1 AND jid LIKE '%%@s.whatsapp.net'", portalColumns), receiver.ToNonAD())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pq *PortalQuery) FindPrivateChatsNotInSpace(receiver types.JID) (keys []PortalKey) {
|
func (pq *PortalQuery) FindPrivateChatsNotInSpace(receiver types.JID) (keys []PortalKey) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue