forked from MirrorHub/mautrix-whatsapp
Fix checkpoint status for message taking long warnings
This commit is contained in:
parent
2542f94e00
commit
14581a314e
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,9 @@ func (portal *Portal) sendMessageMetrics(evt *event.Event, err error, part strin
|
|||
portal.log.Logfln(level, "%s %s %s from %s: %v", part, msgType, evtDescription, evt.Sender, err)
|
||||
reason, isCertain, _, sendNotice := errorToStatusReason(err)
|
||||
status := bridge.ReasonToCheckpointStatus(reason)
|
||||
if errors.Is(err, errMessageTakingLong) {
|
||||
status = bridge.MsgStatusWillRetry
|
||||
}
|
||||
portal.bridge.SendMessageCheckpoint(evt, bridge.MsgStepRemote, err, status, ms.getRetryNum())
|
||||
if sendNotice {
|
||||
ms.setNoticeID(portal.sendErrorMessage(err, isCertain, ms.getNoticeID()))
|
||||
|
|
Loading…
Reference in a new issue