From 76cff9554001ca3727e2ba11b790e9bba27d6b77 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 17 May 2018 16:29:15 +0300 Subject: Move all cache to ~/.cache/gomuks Now `rm -rf ~/.cache/gomuks` has the same effect as `/clearcache` --- ui/view-main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/view-main.go') 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() } -- cgit v1.2.3