Sign-up: a name with capitals ends signed in, not on "Connecting…" #88
No reviewers
Labels
No labels
android
bug
duplicate
feature request
linux
macos
needsinfo
severity: high
severity: low
severity: medium
telegram_gw
ui/ux
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
another-im/anotherim-js!88
Loading…
Reference in a new issue
No description provided.
Delete branch "ryoitsu69/anotherim-js:fix/sign-up-capitals"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After a sign-up with capitals in the name, the screen stays on "Connecting…" over an account that is already connected. This is what is left of #86, which I closed because 0.8.0-rc5 fixes the rest.
Cause
Registration.registeredJidbuilds the address from the form'susernameanswer as typed.<aim-signin-card>keeps that inpendingand looks it up inconnState, an exactMap.get. Since rc5Store.signInnormalises its own copy (59ccee91) and libtacky 1.2.0-rc4 names the account in lower case, soconn <State>comes underrc5_signup_test@chat.testwhile the card waits forRc5_Signup_Test@chat.test.signed-innever comes, and the shell keeps the screen up onpendingSignIn. A restart opens the account normally.Fix
registeredJidgoes throughnormJid, the ruleaddressTargetandjidOffollow sinceecce2f19. The name in the form still goes to the server as typed.Testing
registration.test.tsandsignin-card.test.tseach gain a test with a name with capitals, which no sign-up test had. Both fail on5f1ef7e8.make test-ui check: 5130 passed, 8 skipped,checkclean. On Node 26 it needsNODE_OPTIONS=--no-webstorage: without itjid-case.test.tsfails on clean develop too, becauselocalStorageis undefined under happy-dom.Not run: the Add account sheet in the released rc5, Android.
🤖 Generated with Claude Code
ecce2f19; the name in the form still goes to the server as typed. registration.test.ts and signin-card.test.ts take a name with capitals, which no sign-up test did; both fail on5f1ef7e8. On a local ejabberd 26.09 the released rc5 AppImage stays on "Connecting…" with a session open on the server, and a build with this change opens at once. CHANGELOG under Unreleased. 7829473bb1