Move to defined from_recipient_id and to_recipient_id columns on message table.

This commit is contained in:
Greyson Parrelli
2023-04-14 14:23:05 -04:00
committed by Cody Henthorne
parent d079f85eca
commit 279ad7945e
86 changed files with 944 additions and 719 deletions

View File

@@ -134,9 +134,9 @@ object SafetyNumberBottomSheet {
private fun getDestinationFromRecord(messageRecord: MessageRecord): List<ContactSearchKey.RecipientSearchKey> {
val key = if ((messageRecord as? MmsMessageRecord)?.storyType?.isStory == true) {
ContactSearchKey.RecipientSearchKey(messageRecord.recipient.id, true)
ContactSearchKey.RecipientSearchKey(messageRecord.toRecipient.id, true)
} else {
ContactSearchKey.RecipientSearchKey(messageRecord.recipient.id, false)
ContactSearchKey.RecipientSearchKey(messageRecord.toRecipient.id, false)
}
return listOf(key)