aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/session.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/session.go b/config/session.go
index 6de9436..e314f5f 100644
--- a/config/session.go
+++ b/config/session.go
@@ -96,7 +96,7 @@ func (s *Session) LoadNextBatch(_ string) string {
func (s *Session) GetRoom(mxid string) *rooms.Room {
room, _ := s.Rooms[mxid]
if room == nil {
- room = rooms.NewRoom(mxid)
+ room = rooms.NewRoom(mxid, s.MXID)
s.Rooms[room.ID] = room
}
return room