mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-12-24 17:15:40 +00:00
Update to latest go-gitter API changes
This commit is contained in:
parent
1b15897135
commit
581847f415
@ -51,15 +51,19 @@ func (b *Bgitter) FullOrigin() string {
|
||||
}
|
||||
|
||||
func (b *Bgitter) JoinChannel(channel string) error {
|
||||
_, err := b.c.JoinRoom(channel)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
room := channel
|
||||
roomID := b.getRoomID(room)
|
||||
if roomID == "" {
|
||||
return nil
|
||||
}
|
||||
user, err := b.c.GetUser()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = b.c.JoinRoom(roomID, user.ID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
stream := b.c.Stream(roomID)
|
||||
go b.c.Listen(stream)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user