Include message ID in not found retry receipts

This commit is contained in:
Tulir Asokan 2022-05-17 17:35:23 +03:00
parent 5c70c39625
commit 6634f004ed

View file

@ -337,7 +337,9 @@ func (user *User) createClient(sess *store.Device) {
user.Client.AddEventHandler(user.HandleEvent)
user.Client.SetForceActiveDeliveryReceipts(user.bridge.Config.Bridge.ForceActiveDeliveryReceipts)
user.Client.GetMessageForRetry = func(to types.JID, id types.MessageID) *waProto.Message {
Segment.Track(user.MXID, "WhatsApp incoming retry (message not found)")
Segment.Track(user.MXID, "WhatsApp incoming retry (message not found)", map[string]interface{}{
"messageID": id,
})
user.bridge.Metrics.TrackRetryReceipt(0, false)
return nil
}