Filter archived stories from the stories landing page query.

This commit is contained in:
Greyson Parrelli
2026-03-13 16:49:31 +00:00
committed by Cody Henthorne
parent 21b1401fc4
commit eb8ad5218d

View File

@@ -1613,8 +1613,9 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
FROM $TABLE_NAME
JOIN ${ThreadTable.TABLE_NAME} ON $TABLE_NAME.$THREAD_ID = ${ThreadTable.TABLE_NAME}.${ThreadTable.ID}
WHERE
$STORY_TYPE > 0 AND
$DELETED_BY IS NULL
$STORY_TYPE > 0 AND
$DELETED_BY IS NULL AND
$STORY_ARCHIVED = 0
${if (isOutgoingOnly) " AND is_outgoing != 0" else ""}
ORDER BY
is_unread DESC,