mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-12 21:44:57 +00:00
16 lines
464 B
Nim
16 lines
464 B
Nim
|
import json
|
||
|
|
||
|
import ./settings
|
||
|
import ../types/[setting]
|
||
|
|
||
|
proc getRecentGifs*(): JsonNode =
|
||
|
return settings.getSetting[JsonNode](Setting.Gifs_Recent, %*{})
|
||
|
|
||
|
proc getFavoriteGifs*(): JsonNode =
|
||
|
return settings.getSetting[JsonNode](Setting.Gifs_Favorite, %*{})
|
||
|
|
||
|
proc setFavoriteGifs*(items: JsonNode) =
|
||
|
discard settings.saveSetting(Setting.Gifs_Favorite, items)
|
||
|
|
||
|
proc setRecentGifs*(items: JsonNode) =
|
||
|
discard settings.saveSetting(Setting.Gifs_Recent, items)
|