Don't panic if editing message fails

This commit is contained in:
Tulir Asokan 2023-09-27 15:51:05 +03:00
parent e6f9c36d87
commit 622daca720

View file

@ -597,6 +597,7 @@ func (portal *Portal) handleExistingMessageUpdate(ctx context.Context, source *U
resp, err := portal.sendMessage(converted.Intent, event.EventMessage, part.Content, part.Extra, ts) resp, err := portal.sendMessage(converted.Intent, event.EventMessage, part.Content, part.Extra, ts)
if err != nil { if err != nil {
log.Err(err).Msg("Failed to send message") log.Err(err).Msg("Failed to send message")
continue
} else { } else {
eventIDs = append(eventIDs, resp.EventID) eventIDs = append(eventIDs, resp.EventID)
} }