Use XDG config and cache home

This commit is contained in:
Tulir Asokan
2019-04-06 10:57:24 +03:00
parent 7ad2103f8f
commit 8c1682b225
3 changed files with 53 additions and 5 deletions

View File

@ -98,6 +98,7 @@ func (config *Config) CreateCacheDirs() {
func (config *Config) DeleteSession() {
config.AuthCache.NextBatch = ""
config.AuthCache.InitialSyncDone = false
config.AccessToken = ""
config.Rooms = make(map[string]*rooms.Room)
config.PushRules = nil