Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Riot/Nightly spontaneously cancelled cross-user verification from Riot 1.5.14 #12950

Closed
ara4n opened this issue Mar 31, 2020 · 3 comments · Fixed by matrix-org/matrix-js-sdk#1295

Comments

@ara4n
Copy link
Member

ara4n commented Mar 31, 2020

@matthew:arasphere.net on Riot 1.5.14 tried to verify @matthew:matrix.org on Nightly, and got cancelled. The verif never appeared as a toast on Nightly.

Screenshot 2020-03-31 at 14 03 08

The first event was:

{
  "content": {
    "body": "@matthew:arasphere.net is requesting to verify your key, but your client does not support in-chat key verification.  You will need to use legacy key verification to verify keys.",
    "from_device": "DKAZBAEEPK",
    "methods": [
      "m.sas.v1",
      "m.qr_code.show.v1",
      "m.reciprocate.v1"
    ],
    "msgtype": "m.key.verification.request",
    "to": "@matthew:matrix.org"
  },
  "event_id": "$15856596317WcHyY:arasphere.net",
  "origin_server_ts": 1585659631882,
  "sender": "@matthew:arasphere.net",
  "type": "m.room.message",
  "unsigned": {
    "age": 9138
  },
  "room_id": "!PcWroKvERfdTcjBJCK:matrix.org"
}
@ara4n ara4n added the T-Defect label Mar 31, 2020
@ara4n ara4n changed the title Verification got spontaneously cancelled. Riot/Nightly spontaneously cancelled cross-user verification from Riot 1.5.14 Mar 31, 2020
@bwindels
Copy link
Contributor

bwindels commented Mar 31, 2020

The client for @matthew:matrix.org (the receiver) seems to get confused about the .request event after changing the phase:

2020-03-31T13:00:41.164Z I Verification request $15856596317WcHyY:arasphere.net: m.key.verification.request event with id:$15856596317WcHyY:arasphere.net, content:{"body":"@matthew:arasphere.net is requesting to verify your key, but your client does not support in-chat key verification.  You will need to use legacy key verification to verify keys.","from_device":"DKAZBAEEPK","methods":["m.sas.v1","m.qr_code.show.v1","m.reciprocate.v1"],"msgtype":"m.key.verification.request","to":"@matthew:matrix.org"} deviceId:undefined, sender:@matthew:arasphere.net, isSentByUs:false, isLiveEvent:true, isRemoteEcho:false, phase:1=>2, observeOnly:false=>false
2020-03-31T13:00:41.165Z I Got sound default for !PcWroKvERfdTcjBJCK:matrix.org
2020-03-31T13:00:41.180Z W Cancelling, unexpected m.key.verification.request verification event from @matthew:arasphere.net
2020-03-31T13:00:41.181Z I sendEvent of type m.key.verification.cancel in !PcWroKvERfdTcjBJCK:matrix.org with txnId m1585659641181.220

@bwindels
Copy link
Contributor

It looks like we're processing the same .request event twice for some reason ... perhaps a race with decrypting the event?

@bwindels
Copy link
Contributor

Will have a further look after finishing the QR stuff.

@bwindels bwindels self-assigned this Mar 31, 2020
t3chguy pushed a commit that referenced this issue Oct 17, 2024
…age banner (#12950)

* Move event preview to its own component

* Remove unused parameter

* Add prefix to file, audio, video and image in the pinned message banner

* Add prefix to poll in the pinned message banner

* Add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants