aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-20 21:25:13 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-20 21:25:13 +0200
commitdd009a9dbcd4334db0d134ca147d1afd4d6e5014 (patch)
tree5ed4f47e1ce8c81870e4247491b4103c3b1a6fba /config
parent095b982603c26e250e61cf006157019e2b55be74 (diff)
Finish spec-compliant room naming and add docs for room.go
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