Pasting into add MUC dialog's "room" field should be improved
Prasing of JIDs or URIs into the MUC bookmark "room" field could be improved to split out the nick from the resourcepart, or to work with XMPP join URI's.
When pasting an entire JID into the room field of the add new bookmark or join chat dialog box, it is split into its component parts. Eg. pasting "firstname.lastname@example.org" would into the "room" field would set the room field to "room" and the server field to "example.net".
This is convenient when copy/pasting MUC rooms from webpages and documents. However, this paste functionality could also be expanded to work for join/invite URI's as specified in RFC 5122, XEP-0147, and XEP-0045 in order of ascending priority (eg. "xmpp:email@example.com?join").
This would split off the query string and protocol (
?join' andxmpp:'), and then paste the rest as usual (useful when, eg. copying a link source from a webpage).
It might also be good (though with more limited use, I would think) to split full JID's including the resource part. Eg.
firstname.lastname@example.org/MyNick' would split and placeMyNick' in the Nickname field.
Implement URI parsing, specifically URI's with the query
Possibly implment parsing resourceparts into nicks, but this most likely has limited use.
I don't know which Gajim version you use, but it works this way in 0.16
Sorry, bad bug report. I'm using Gajim 0.16 as well. Pasting a link of the form
xmpp:localpart@domainpart?joincauses the ? to be pasted into the server field, resulting in the error message
Then you should just click on it and configure your browser to call gajim-remote, which handle the URI correctly.
Let's say, for the sake of argument, that I was sent a "link" which wasn't linkified and didn't come from a browser (I could, of course, have just copy/pasted the actual JID, but let's ignore that as well and assume a user who has no idea what the parts of the URI mean and is just told "put this in your client to connect to the room"). Or for that matter, that my browser doesn't allow me to launch custom URI's that it doesn't understand (actually true in this case).
Anyways, just a suggestion; seems like right clicking a link / copying then pasting in would be a common use case, and could reasonably be expected to work (since it works with a plain JID).
that could work yes. But a dialog is designed to write JID in it, not copy a strange URI in it. But yes, we could remove the xmpp: part and the part after ?