message: open a to_device request in a modal instead of the right panel 1st room
diff: @@ -78,20 +78,13 @@ export default class VerificationRequestToast extends React.PureComponent {
  // no room id for to_device requests
  const cli = MatrixClientPeg.get();
  try {
  + await request.accept();
  if (request.channel.roomId) {
  dis.dispatch({
  action: 'view_room',
  room_id: request.channel.roomId,
  should_peek: false,
  });
  - } else {
  - dis.dispatch({
  - action: 'view_room',
  - room_id: cli.getRooms()[0].roomId,
  - should_peek: false,
  - });
  - }
  - await request.accept();
  dis.dispatch({
  action: "set_right_panel_phase",
  phase: RIGHT_PANEL_PHASES.EncryptionPanel,
  @@ -100,6 +93,13 @@ export default class VerificationRequestToast extends React.PureComponent {
  member: cli.getUser(request.otherUserId),
  },
  });
  + } else {
  + const VerificationRequestDialog = sdk.getComponent("views.dialogs.VerificationRequestDialog");
  + Modal.createTrackedDialog('Incoming Verification', '', VerificationRequestDialog, {
  + verificationRequest: request,
  + }, null, /* priority = */ false, /* static = */ true);
  + }
  +
  // } else if (request.channel.deviceId && request.verifier) {
  // // show to_device verifications in dialog still
  // const IncomingSasDialog = sdk.getComponent("views.dialogs.IncomingSasDialog");
  