Skip to content

Commit 62886b7

Browse files
committed
Adopt new device verification API
1 parent 4ba6c4a commit 62886b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/api/rust/rust.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ func (c *RustClient) RequestOwnUserVerification(t ct.TestLike) chan api.Verifica
275275

276276
var delegate matrix_sdk_ffi.SessionVerificationControllerDelegate = delegateImpl
277277
svc.SetDelegate(&delegate)
278-
if err = svc.RequestVerification(); err != nil {
279-
ct.Fatalf(t, "RequestVerification: %s", err)
278+
if err = svc.RequestDeviceVerification(); err != nil {
279+
ct.Fatalf(t, "RequestDeviceVerification: %s", err)
280280
}
281281
ch <- api.NewVerificationStageRequested(container)
282282
return ch
@@ -981,7 +981,7 @@ func eventTimelineItemToEvent(item matrix_sdk_ffi.EventTimelineItem) *api.Event
981981
return &complementEvent
982982
}
983983

984-
// you call requestVerification(), then you wait for acceptedVerificationRequest and then you
984+
// you call requestDeviceVerification(), then you wait for acceptedVerificationRequest and then you
985985
// call startSasVerification
986986
// you should then receivedVerificationData and approveVerification or declineVerification
987987
type SessionVerificationControllerDelegate struct {

0 commit comments

Comments
 (0)