refactor: moving radio indexes out of expiration configuration

This commit is contained in:
0x330a
2023-07-27 14:22:10 +10:00
parent 0e30d14b96
commit 87d76b21da
3 changed files with 21 additions and 5 deletions

View File

@@ -1675,6 +1675,8 @@ open class Storage(context: Context, helper: SQLCipherOpenHelper, private val co
return if (recipient.isContactRecipient && recipient.address.serialize().startsWith(IdPrefix.STANDARD.value)) {
// read it from contacts config if exists
configFactory.contacts?.get(recipient.address.serialize())?.let { contact ->
val mode = contact.expiryMode
ExpirationConfiguration(threadId, mode.expirySeconds,)
contact.expiryMode
}
} else if (recipient.isClosedGroupRecipient) {