refactor: rename file, add new function to check auto download that calls isTrusted for now

This commit is contained in:
0x330a
2022-11-07 12:16:38 +11:00
parent f08ae7a874
commit 69edc1774c
2 changed files with 2 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ class ConversationSettingsViewModel(
storage.isContactTrusted(recipient)
} ?: false
fun autoDownloadAttachments() = isTrusted()
fun setTrusted(isTrusted: Boolean) {
val recipient = recipient ?: return
storage.setContactTrusted(recipient, isTrusted)