Update bridge/slack/slack.go
Co-Authored-By: patcon <patrick.c.connolly@gmail.com>
This commit is contained in:
committed by
Patrick Connolly
parent
f21b539fbf
commit
578e2b6ae8
@@ -349,7 +349,15 @@ func (b *Bslack) updateTopicOrPurpose(msg *config.Message, channelInfo *slack.Ch
|
|||||||
if strings.HasSuffix(channelInfo.Purpose.Value, "[nosync]") {
|
if strings.HasSuffix(channelInfo.Purpose.Value, "[nosync]") {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
_, err = b.rtm.SetPurposeOfConversation(channelInfo.ID, text)
|
for {
|
||||||
|
_, err = b.rtm.SetTopicOfConversation(channelInfo.ID, text)
|
||||||
|
if err == nil {
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
|
if err = b.handleRateLimit(err); err != nil {
|
||||||
|
return true, err
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user