~singpolyma/cheogram-android

bf77cc5c004acbc93bfb86fba8713dcc20dfb0fd — Stephen Paul Weber 10 months ago 50fb3b9
When entering cheogram.com conversation while onboarding, go to register
1 files changed, 5 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
M src/main/java/eu/siacs/conversations/ui/ConversationFragment.java => src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +5 -0
@@ 3010,6 3010,11 @@ public class ConversationFragment extends XmppFragment
        if (message != null) {
            startDownloadable(message);
        }
        if (activity.xmppConnectionService.isOnboarding() && conversation.getJid().equals(Jid.of("cheogram.com"))) {
            if (!conversation.switchToSession("jabber:iq:register")) {
                conversation.startCommand(commandFor(Jid.of("cheogram.com/CHEOGRAM%jabber:iq:register"), "jabber:iq:register"), activity.xmppConnectionService);
            }
        }
    }

    private Element commandFor(final Jid jid, final String node) {