Cannot change JID to a JID containing 10 digits

When you try to change the JID registered in Cheogram to a new JID (e.g. using the “change” command) that contains 10 digits, such as ab2345678901@example.com , it will send a message to the new JID asking the new JID to do “register” but when it does that, cheogram.com acts as if there is no change event registered, and instead behaves as if the new (e.g. ab2345678901@example.com ) is trying to register for the first time (asks which gateway, then if JMP selected asks to search for a number to use, etc.).

It seems to work fine for JIDs containing fewer than 10 digits (e.g. a format like ab234@example.com worked in testing). So we need to see why Cheogram handles this case specially and fix it.

Note also that Cheogram adds an extra Redis key in the bug case, so we need to at least clean that up if not fixing it entirely.

I think the 10 digits is a red herring, as this worked just fine in testing just now. There may be some kind of issue with jid switch, and we have evidence from customers also to suggest there is, but it’s not related to jid format AFAICT.

this was the trailing space issue, which has been fixed