core: do not show chat relay test connections in chat list

The connection created by APITestChatRelay has conn_type = contact and no
chat entity, so the only thing keeping it out of the chat list was the
filter on prepared status - and the agent event handler moves it past that
status (CONF sets it to requested) before the relay test result arrives.
So a relay test shows a phantom "connecting" chat while it runs, and
permanently if the app is killed before the test deletes the connection.
This commit is contained in:
Narasimha-sc committed 2026-09-05 11:19:05 +00:00
1 parent 76a577afb3
commit 6500e1e5c4
2 files changed
+4

No files matched your search

+1
View File
@@ -1194,6 +1194,7 @@ getContactConnectionChatPreviews_ db User {userId} pagination clq = case clq of
WHERE user_id = ?
AND conn_type = ?
AND conn_status != ?
AND relay_test = 0
AND contact_id IS NULL
AND conn_level = 0
AND via_contact IS NULL
@@ -2038,6 +2038,7 @@ Query:
WHERE user_id = ?
AND conn_type = ?
AND conn_status != ?
AND relay_test = 0
AND contact_id IS NULL
AND conn_level = 0
AND via_contact IS NULL
@@ -2055,6 +2056,7 @@ Query:
WHERE user_id = ?
AND conn_type = ?
AND conn_status != ?
AND relay_test = 0
AND contact_id IS NULL
AND conn_level = 0
AND via_contact IS NULL
@@ -2072,6 +2074,7 @@ Query:
WHERE user_id = ?
AND conn_type = ?
AND conn_status != ?
AND relay_test = 0
AND contact_id IS NULL
AND conn_level = 0
AND via_contact IS NULL