diff options
Diffstat (limited to 'bridge/matrix')
-rw-r--r-- | bridge/matrix/matrix.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 06359855..6cf6a566 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -63,13 +63,13 @@ func (b *Bmatrix) Disconnect() error { return nil } -func (b *Bmatrix) JoinChannel(channel string) error { - resp, err := b.mc.JoinRoom(channel, "", nil) +func (b *Bmatrix) JoinChannel(channel config.ChannelInfo) error { + resp, err := b.mc.JoinRoom(channel.Name, "", nil) if err != nil { return err } b.Lock() - b.RoomMap[resp.RoomID] = channel + b.RoomMap[resp.RoomID] = channel.Name b.Unlock() return err } |