Fix hidden recipients instrumentation tests.

This commit is contained in:
Clark
2023-08-10 15:29:02 -03:00
committed by Alex Hart
parent ca3187d0b8
commit 7543b9fa37
2 changed files with 3 additions and 3 deletions
@@ -1713,7 +1713,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
*/
fun deleteStoriesForRecipient(recipientId: RecipientId): Int {
return writableDatabase.withinTransaction { db ->
val threadId = threads.getThreadIdFor(recipientId)
val threadId = threads.getThreadIdFor(recipientId) ?: return@withinTransaction 0
val storesInRecipientThread = "$IS_STORY_CLAUSE AND $THREAD_ID = ?"
val sharedArgs = buildArgs(threadId)