Handle all parts of message failing to send
This commit is contained in:
parent
1b774b11ac
commit
1d86a6c129
1 changed files with 5 additions and 1 deletions
|
@ -665,7 +665,11 @@ func (portal *Portal) sendMessageParts(ctx context.Context, converted *Converted
|
|||
}
|
||||
}
|
||||
}
|
||||
if len(eventIDs) > 0 {
|
||||
portal.markHandled(converted, eventIDs[0], mediaParts, true)
|
||||
} else {
|
||||
zerolog.Ctx(ctx).Warn().Msg("All parts of message failed to send")
|
||||
}
|
||||
return eventIDs
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue