mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
verificationhelper: add better logging when sending cancellation due to unknown transaction ID
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
parent
7066beb946
commit
2a20aa3232
1 changed files with 4 additions and 1 deletions
|
|
@ -240,6 +240,7 @@ func (vh *VerificationHelper) Init(ctx context.Context) error {
|
|||
Stringer("sender", evt.Sender).
|
||||
Stringer("room_id", evt.RoomID).
|
||||
Stringer("event_id", evt.ID).
|
||||
Stringer("event_type", evt.Type).
|
||||
Logger()
|
||||
|
||||
var transactionID id.VerificationTransactionID
|
||||
|
|
@ -266,8 +267,10 @@ func (vh *VerificationHelper) Init(ctx context.Context) error {
|
|||
return
|
||||
}
|
||||
|
||||
log.Warn().Msg("Sending cancellation event for unknown transaction ID")
|
||||
|
||||
// We have to create a fake transaction so that the call to
|
||||
// verificationCancelled works.
|
||||
// cancelVerificationTxn works.
|
||||
txn = &verificationTransaction{
|
||||
RoomID: evt.RoomID,
|
||||
TheirUser: evt.Sender,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue