From dd009a9dbcd4334db0d134ca147d1afd4d6e5014 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 20 Mar 2018 21:25:13 +0200 Subject: Finish spec-compliant room naming and add docs for room.go --- config/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.3