Include unregistered users in blocked sync message.

This commit is contained in:
Greyson Parrelli
2024-11-14 11:31:30 -05:00
parent 0f4caa3dc1
commit b4472833b8
8 changed files with 110 additions and 159 deletions

View File

@@ -709,8 +709,13 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
}
}
fun getBlocked(): Cursor {
return readableDatabase.query(TABLE_NAME, ID_PROJECTION, "$BLOCKED = 1", null, null, null, null)
fun getBlocked(): List<RecipientRecord> {
return readableDatabase
.select()
.from(TABLE_NAME)
.where("$BLOCKED = 1")
.run()
.readToList { RecipientTableCursorUtil.getRecord(context, it) }
}
fun readerForBlocked(cursor: Cursor): RecipientReader {