When no ItemState entry is available for an item, by default it is unstarred

This commit is contained in:
Shinokuni 2024-06-28 21:20:42 +02:00
parent d51cf041b8
commit 02fb320123
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ object ItemsQueryBuilder {
private val SEPARATE_STATE_COLUMNS = arrayOf( private val SEPARATE_STATE_COLUMNS = arrayOf(
"case When ItemState.remote_id is NULL Or ItemState.read = 1 Then 1 else 0 End read", "case When ItemState.remote_id is NULL Or ItemState.read = 1 Then 1 else 0 End read",
"case When ItemState.remote_id is NULL or ItemState.starred = 1 Then 1 else 0 End starred" "case When ItemState.starred = 1 Then 1 else 0 End starred"
) )
private val OTHER_COLUMNS = arrayOf("read", "starred") private val OTHER_COLUMNS = arrayOf("read", "starred")