This commit is contained in:
Andrey Shovkoplyas 2020-03-23 12:49:32 +01:00 committed by Andrea Maria Piana
parent de3c33f009
commit 2ca9309953
1 changed files with 1 additions and 5 deletions

View File

@ -71,7 +71,7 @@ type Settings struct {
StickerPacksPending *json.RawMessage `json:"stickers/packs-pending,omitempty"`
StickersRecentStickers *json.RawMessage `json:"stickers/recent-stickers,omitempty"`
SyncingOnMobileNetwork bool `json:"syncing-on-mobile-network?,omitempty"`
Appearance int64 `json:"appearance"`
Appearance uint `json:"appearance"`
Usernames *json.RawMessage `json:"usernames,omitempty"`
WalletRootAddress types.Address `json:"wallet-root-address,omitempty"`
WalletSetUpPassed bool `json:"wallet-set-up-passed?,omitempty"`
@ -276,10 +276,6 @@ func (db *Database) SaveSetting(setting string, value interface{}) error {
}
update, err = db.db.Prepare("UPDATE settings SET waku_enabled = ? WHERE synthetic_id = 'id'")
case "appearance":
_, ok := value.(uint)
if !ok {
return ErrInvalidConfig
}
update, err = db.db.Prepare("UPDATE settings SET appearance = ? WHERE synthetic_id = 'id'")
case "waku-bloom-filter-mode":
_, ok := value.(bool)