mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-26 12:09:22 +00:00
Update nc-talk dependency (#1226)
This commit is contained in:
@ -130,6 +130,7 @@ func (t *TalkRoom) ReceiveMessages(ctx context.Context) (chan ocs.TalkRoomMessag
|
||||
if res.StatusCode == 200 {
|
||||
lastKnown = res.Header.Get("X-Chat-Last-Given")
|
||||
data, err := ioutil.ReadAll(res.Body)
|
||||
_ = res.Body.Close()
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
@ -140,7 +141,9 @@ func (t *TalkRoom) ReceiveMessages(ctx context.Context) (chan ocs.TalkRoomMessag
|
||||
for _, msg := range message.OCS.TalkRoomMessage {
|
||||
c <- msg
|
||||
}
|
||||
continue
|
||||
}
|
||||
_ = res.Body.Close()
|
||||
}
|
||||
}()
|
||||
return c, nil
|
||||
|
Reference in New Issue
Block a user