refactor: replace Storage references with StorageProtocol

This commit is contained in:
0x330a
2022-11-11 15:29:39 +11:00
parent e07a92d427
commit f1305856ad
15 changed files with 73 additions and 50 deletions

View File

@@ -162,6 +162,7 @@ interface StorageProtocol {
fun setContact(contact: Contact)
fun getRecipientForThread(threadId: Long): Recipient?
fun getRecipientSettings(address: Address): RecipientSettings?
fun hasAutoDownloadFlagBeenSet(recipient: Recipient): Boolean
fun addContacts(contacts: List<ConfigurationMessage.Contact>)
fun shouldAutoDownloadAttachments(recipient: Recipient): Boolean
fun setAutoDownloadAttachments(recipient: Recipient, shouldAutoDownloadAttachments: Boolean)