mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-31 02:06:19 +00:00
refactor: rename file, add new function to check auto download that calls isTrusted for now
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user