diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-17 16:29:15 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-17 16:29:18 +0300 |
commit | 76cff9554001ca3727e2ba11b790e9bba27d6b77 (patch) | |
tree | 325015fa4b331aeb4487d2ed0aaf94f2f3d40fe4 /ui | |
parent | a1f9ee23fa07bdeb548953cdadb7e2cfb0fa05de (diff) |
Move all cache to ~/.cache/gomuks
Now `rm -rf ~/.cache/gomuks` has the same effect as `/clearcache`
Diffstat (limited to 'ui')
-rw-r--r-- | ui/view-main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/view-main.go b/ui/view-main.go index c8977d3..314221a 100644 --- a/ui/view-main.go +++ b/ui/view-main.go @@ -430,7 +430,7 @@ func sendNotification(room *rooms.Room, sender, text string, critical, sound boo func (view *MainView) NotifyMessage(room *rooms.Room, message ifc.Message, should pushrules.PushActionArrayShould) { view.roomList.Bump(room) - if message.SenderID() == view.config.Session.UserID { + if message.SenderID() == view.config.UserID { return } // Whether or not the room where the message came is the currently shown room. @@ -505,7 +505,7 @@ func (view *MainView) LoadHistory(room string) { if err != nil { debug.Printf("Failed to save history of %s: %v", roomView.Room.GetTitle(), err) } - view.config.Session.Save() + view.config.PutRoom(roomView.Room) view.parent.Render() } |