xmpp "auto join" chat does not accommodate a Nick that is two discrete words
Categories
(Chat Core :: XMPP, defect)
Tracking
(Not tracked)
People
(Reporter: djo, Unassigned)
Details
Updated•9 years ago
|
Updated•9 years ago
|
Comment 1•6 years ago
|
||
In prefs.js the entry that holds the nickname is
user_pref("messenger.account.accountNNN.autoJoin", "....");
I tried escaping embedded spaces in the nickname with backslash, like
".../Genghis\\ Khan"
but it did not work: only the first part is used for nickname.
I tried encoding embedded space as %20, like
".../Genghis%20Khan"
but then %20 becomes part of the nickname.
So, no workaround found.
Comment 2•6 years ago
|
||
If this issue were fixed then a way to represent nicknames with spaces is needed for the
user_pref("messenger.account.accountNNN.autoJoin", "....")
setting in prefs.js. The value string can contain multiple entries separated by commas, where each entry seems to have the format
USER@DOMAIN/NICKNAME
Assuming that a nickname must not contain commas then a value string like the following could still be parsed:
"alice@atlanta.example.com/Mona Lisa,bob@biloxi.example.com/Bobby Ewing"
Is this a reasonable representation? Or should it be done some other way?
Comment 3•6 years ago
|
||
(In reply to Rabbe Fogelholm from comment #2)
Is this a reasonable representation? Or should it be done some other way?
The best way would be to store the data as JSON, but this would require building a better UI to add/remove/edit auto-joined rooms.
If we want a minimal fix, url encoding (so that the space becomes %20) would be the thing we could do with the lowest effort.
Comment 4•6 years ago
|
||
(In reply to Florian Quèze [:florian] from comment #3)
Ok, url encoding sounds like a good way to go.
I can think of three ways that a user could create a nickname with spaces:
-
By typing a nickname with spaces in the "Nick" field in the "Join chat" dialog (works today, but not persistently)
-
By typing /nick Mmm Nnn when already in a room (does not work today, only 'Mmm' is kept)
-
By editing prefs.js (requiring knowledge of the url encoding scheme)
Updated•3 years ago
|
Description
•