Fix error messages in telegram and slack bridges (#1862)
* Fix message html entities escaping when sending to Telegram * Fix error messages in telegram and slack bridges Co-authored-by: Wim <wim@42.be>
This commit is contained in:
parent
0482cd191d
commit
365acc36ea
@ -80,7 +80,7 @@ func (b *Bslack) handleSlackClient(messages chan *config.Message) {
|
|||||||
case *slack.FileDeletedEvent:
|
case *slack.FileDeletedEvent:
|
||||||
rmsg, err := b.handleFileDeletedEvent(ev)
|
rmsg, err := b.handleFileDeletedEvent(ev)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.Log.Errorf("%#v", err)
|
b.Log.Printf("%#v", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
messages <- rmsg
|
messages <- rmsg
|
||||||
|
@ -176,7 +176,7 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
|
|||||||
|
|
||||||
if update.Message == nil && update.ChannelPost == nil &&
|
if update.Message == nil && update.ChannelPost == nil &&
|
||||||
update.EditedMessage == nil && update.EditedChannelPost == nil {
|
update.EditedMessage == nil && update.EditedChannelPost == nil {
|
||||||
b.Log.Error("Getting nil messages, this shouldn't happen.")
|
b.Log.Info("Received event without messages, skipping.")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user