parent
1b9cf631be
commit
820a5bc363
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ object V166_ThreadAndMessageForeignKeys : SignalDatabaseMigration {
|
||||||
Log.w(TAG, "There were $count threads for RecipientId::$recipientId. Merging.", true)
|
Log.w(TAG, "There were $count threads for RecipientId::$recipientId. Merging.", true)
|
||||||
|
|
||||||
val threads: List<ThreadInfo> = getThreadsByRecipientId(db, cursor.requireLong("thread_recipient_id"))
|
val threads: List<ThreadInfo> = getThreadsByRecipientId(db, cursor.requireLong("thread_recipient_id"))
|
||||||
mergeThreads(db, threads)
|
if (threads.size > 1) {
|
||||||
|
mergeThreads(db, threads)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue