Make sure the active account is always correctly saved to database (#3720)
Fixes #3702
This commit is contained in:
parent
3698c72109
commit
6e06e656b4
3 changed files with 4 additions and 12 deletions
|
|
@ -46,11 +46,8 @@ class SearchViewModel @Inject constructor(
|
|||
|
||||
var currentQuery: String = ""
|
||||
|
||||
var activeAccount: AccountEntity?
|
||||
val activeAccount: AccountEntity?
|
||||
get() = accountManager.activeAccount
|
||||
set(value) {
|
||||
accountManager.activeAccount = value
|
||||
}
|
||||
|
||||
val mediaPreviewEnabled = activeAccount?.mediaPreviewEnabled ?: false
|
||||
val alwaysShowSensitiveMedia = activeAccount?.alwaysShowSensitiveMedia ?: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue