The Wayback Machine - https://web.archive.org/web/20200714103500/https://github.com/vector-im/riot-web/issues/11224
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

Move verification to side panel #11224

Closed
dbkr opened this issue Oct 24, 2019 · 5 comments
Closed

Move verification to side panel #11224

dbkr opened this issue Oct 24, 2019 · 5 comments

Comments

@bwindels
Copy link
Member

@bwindels bwindels commented Dec 10, 2019

react-sdk branch: bwindels/verification-right-panel
js-sdk branch: bwindels/verification-ready

@bwindels
Copy link
Member

@bwindels bwindels commented Dec 10, 2019

some notes of current state:

  • DONEISH: support .ready event

  • replace KeyVerificationStateObserver with VerificationRequest

    • DONE-ISH: in MKeyVerificationRequest
    • in MKeyVerificationConclusion
    • in VerificationToast
  • DONE: introduce new phase and panel to right panel

  • DONE: navigation to open request in side panel

    • listen for for show_verification_request in MatrixChat
    • show right panel if collapsedRhs
    • emit view_right_panel_phase with new phase
  • implement component for side panel

  • Room.timeline is not fired for every event in the store upon refresh, duh. So what does this mean for restoring toasts when reloading? Note that this is not a requirement though ...

  • wrt to VerificationRequest, sometimes we set an event reference on remote echo, but we already change the phase when sending the event. We should have a consistent approach to this so we don't get it wrong.

  • only validated verification events should be displayed in the timeline ... if we don't check timeout in validateEvent and allow all verif events to create requests independent from their age, we can probably make this work. We can mark the request as timed out and not create a verifier and not send any events, but still allow the state machine to update with incoming events.

  • while testing, I get the following errors:

    • send a request from chrome
    • click accept in ff, sends .ready event
    • the code in the DeviceVerifyDialog gets the verifier through beginKeyVerif and sends .start event (should verify this)
    • the remove echo of the start event tries to create a verifier and fails because it can't find out who it is directed to (can't determine who the verifier should be targeted at. No .request or .start event and no targetDevice)
    • questions:
      • why doesn't it use the ready event that was cached?
      • why isn't the verifier set earlier? verifier should always be defined while in phase start
@bwindels
Copy link
Member

@bwindels bwindels commented Jan 3, 2020 •

the notes above are stale and should be (mostly) ignored ^

@jryans
Copy link
Member

@jryans jryans commented Jan 21, 2020

@bwindels Is this safe to close then, since we've got other tickets for the remaining work?

@jryans
Copy link
Member

@jryans jryans commented Feb 10, 2020

(@bwindels says yes.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.