Hide call events from hidden and blocked contacts.

This commit is contained in:
Alex Hart 2023-05-04 10:02:15 -03:00
parent 664e8e5526
commit 4294b446f3

View file

@ -833,7 +833,9 @@ class CallTable(context: Context, databaseHelper: SignalDatabase) : DatabaseTabl
"""
SqlUtil.buildQuery(selection, 0, 0, glob, glob, glob, glob)
} else {
SqlUtil.buildQuery("")
SqlUtil.buildQuery("""
${RecipientTable.TABLE_NAME}.${RecipientTable.BLOCKED} = ? AND ${RecipientTable.TABLE_NAME}.${RecipientTable.HIDDEN} = ?
""", 0, 0)
}
val offsetLimit = if (limit > 0) {