"Inverted" sign up flow

Create JID on onboarding.cheogram.com first, then use that for cheogram.com setup, then create a JID and use jid switch at the end.

Question: what if the backend doesn’t support jid switch?

It selected backend doesn’t support jid switch then render canceled with XMPP URI OOB (#232) for IBR to favourite server.

Hmm, how do we know what JID to switch to? We don’t by the end of the ad-hoc flow actually, so will need to store a flag that means “do jid switch when next new account is created” or something. Or just do it by detecting that there are only two accounts and one is onboarding.cheogram.com ?

Polish stuff:

  1. Square out of app then open again takes me to conversations list instead of back to command flow
  2. Tapping cheogram.com conversation to get back to command flow doesn’t hide tab bar
  3. Back button from command flow takes me to conversations list, even in onboarding, which then lets me get to everything else
  4. Force quit app and re-open leads me to conversations list and no running command and no way to get back to the command

Close takes you to an infinite spinner (command list) should take you to conversation list or at least force actually getting the command list.

How to handle cancel button during registration? Current it acts like “no thanks” and boots you out of JMP flow entirely. Maybe that’s correct? Probably just hide cancel button…

This is ready now pending final testing after https://github.com/snikket-im/snikket-web-portal/pull/144 goes out and then we can get other people to test it.