aboutsummaryrefslogtreecommitdiff
path: root/ui/view-main.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/view-main.go')
-rw-r--r--ui/view-main.go4
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()
}