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

pull/1403/head
0x330a 3 years ago
parent f08ae7a874
commit 69edc1774c

@ -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)

Loading…
Cancel
Save