mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
feat(BRIDGE-75): Bridge repair button/feature implemented
This commit is contained in:
@ -232,3 +232,13 @@ func (user *User) Clear() error {
|
||||
func (user *User) Close() error {
|
||||
return user.vault.detachUser(user.userID)
|
||||
}
|
||||
|
||||
func (user *User) SetShouldSync(shouldResync bool) error {
|
||||
return user.vault.modUser(user.userID, func(data *UserData) {
|
||||
data.ShouldResync = shouldResync
|
||||
})
|
||||
}
|
||||
|
||||
func (user *User) GetShouldResync() bool {
|
||||
return user.vault.getUser(user.userID).ShouldResync
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user