Prevent getCallLinks from returning links without root keys.

This commit is contained in:
Alex Hart 2024-04-24 14:17:58 -03:00
parent 7dcb8a425a
commit 63e6f955ed

View file

@ -377,7 +377,7 @@ class CallLinkTable(context: Context, databaseHelper: SignalDatabase) : Database
val statement = """
SELECT $projection
FROM $TABLE_NAME
WHERE $noCallEvent AND NOT $REVOKED ${searchFilter?.where ?: ""}
WHERE $noCallEvent AND NOT $REVOKED ${searchFilter?.where ?: ""} AND $ROOT_KEY IS NOT NULL
ORDER BY $ID DESC
$limitOffset
""".trimIndent()