mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 11:15:44 +00:00
Omit blocked contacts from recents.
This commit is contained in:
committed by
Cody Henthorne
parent
ecbc2d30ca
commit
15111b2792
@@ -133,7 +133,7 @@ open class RecipientDatabase(context: Context, databaseHelper: SignalDatabase) :
|
||||
const val GROUP_ID = "group_id"
|
||||
const val DISTRIBUTION_LIST_ID = "distribution_list_id"
|
||||
const val GROUP_TYPE = "group_type"
|
||||
private const val BLOCKED = "blocked"
|
||||
const val BLOCKED = "blocked"
|
||||
private const val MESSAGE_RINGTONE = "message_ringtone"
|
||||
private const val MESSAGE_VIBRATE = "message_vibrate"
|
||||
private const val CALL_RINGTONE = "call_ringtone"
|
||||
|
||||
@@ -625,6 +625,7 @@ public class ThreadDatabase extends Database {
|
||||
}
|
||||
|
||||
query += " AND " + ARCHIVED + " = 0";
|
||||
query += " AND " + RecipientDatabase.TABLE_NAME + "." + RecipientDatabase.BLOCKED + " = 0";
|
||||
|
||||
if (SignalStore.releaseChannelValues().getReleaseChannelRecipientId() != null) {
|
||||
query += " AND " + RECIPIENT_ID + " != " + SignalStore.releaseChannelValues().getReleaseChannelRecipientId().toLong();
|
||||
|
||||
Reference in New Issue
Block a user