3
0
mirror of https://github.com/42wim/matterbridge.git synced 2024-12-27 05:32:44 +01:00

Fix roomid bug (gitter)

This commit is contained in:
Wim 2017-03-18 21:17:21 +01:00
parent e05a323afd
commit c30ffeb81e

View File

@ -58,8 +58,9 @@ func (b *Bgitter) JoinChannel(channel string) error {
}
room, err := b.c.GetRoom(roomID)
if err != nil {
b.Rooms = append(b.Rooms, *room)
return err
}
b.Rooms = append(b.Rooms, *room)
user, err := b.c.GetUser()
if err != nil {
return err