mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-21 04:41:36 +00:00
mobile: use batched DOWN/UP events, core: include pending contacts (#573)
* mobile: use batched DOWN/UP events, core: include pending contacts * query style
This commit is contained in:
@@ -1209,11 +1209,11 @@ getConnectionsContacts st userId agentConnIds =
|
||||
SELECT ct.contact_id, ct.local_display_name
|
||||
FROM contacts ct
|
||||
JOIN connections c ON c.contact_id = ct.contact_id
|
||||
WHERE ct.user_id = ? AND c.agent_conn_id IN (SELECT conn_id FROM temp.conn_ids)
|
||||
WHERE ct.user_id = ?
|
||||
AND c.agent_conn_id IN (SELECT conn_id FROM temp.conn_ids)
|
||||
AND c.conn_type = ?
|
||||
AND (c.conn_status = ? OR c.conn_status = ?)
|
||||
|]
|
||||
(userId, ConnContact, ConnReady, ConnSndReady)
|
||||
(userId, ConnContact)
|
||||
DB.execute_ db "DROP TABLE temp.conn_ids"
|
||||
pure conns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user