mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 09:23:51 +01:00
Include message ID in not found retry receipts
This commit is contained in:
parent
5c70c39625
commit
6634f004ed
1 changed files with 3 additions and 1 deletions
4
user.go
4
user.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue