maemo.org Bugzilla – Bug 2141
Allow setting priority in Jabber/GTalk
Last modified: 2015-12-26 14:10:19 UTC
You need to log in before you can comment on or make changes to this bug.
EXPECTED OUTCOME: ability to set priority ACTUAL OUTCOME: no a word concerning priority, not any! STEPS TO REPRODUCE THE PROBLEM: try to change jabber priority OTHER COMMENTS: Priority is one of the most important features in jabber — it's the other side of the "multiple connections" feature. IMHO. (At least, personally I use it daily.) It's much more important than status message (that can't be changed as well).
In ten years of using Jabber, I haven't even once changed the priority. I don't even see why it's needed since a message received goes to all connected clients anyways. I assume it's left out for simplicity's sake. I've filed a previous bug for allowing status messages to be changed while online. Bug 1675.
I completely agree that the IM client needs to set the priority to something other than 0. When you connect to the same jabber account from multiple "resources (locations / clients)", the priority determines which client gets new messages. The other client I use is Pidgin which has a resource priority of 1 when active, and 0 when away... I wish they would let you edit the resources manually, but even if they don't, anything is better than 0 all the time. The maemo chat client will never receive IMs when there are multiple clients involved unless all the other ones are already set to 0 and the maemo client is the last to connect. Please, set the "online" and "invisible" statuses to send a presence priority. The real root of the problem is that there is no standardization for resource/status priority numbers, so every client does it differently. (Apparently gtalk/gmail uses 24 for away priority so it often takes precedence over someone actually online with another client). The priority numbers should be standardized, but since they aren't, at least let us configure them with gconf and set them to a default of 1 for online and 0 for away.
*** Bug 2798 has been marked as a duplicate of this bug. ***
*** This bug has been confirmed by popular vote. ***
(In reply to comment #1) > I don't even see why it's needed since a message received goes to all > connected clients anyways. You are wrong. See http://www.xmpp.org/rfcs/rfc3921.html#rules: "For message stanzas, the server SHOULD deliver the stanza to the highest-priority available resource..." The jabber servers I use do respect the spec in this regard, only highest priority clients will receive the message. I have several devices with jabber clients and priority support would make life so much easier. I'm including my thoughts from the duplicate here: --- Example situation: user has laptop, tablet and phone. he would like their priorities to be in this order, from high to low: * laptop available * tablet available * phone available * laptop away * tablet away * phone away This would be trivial to setup if the applications allowed changing priorities (see Psi for an example), but just hard-coded settings (see Pidgin for an example) would be fine too if chosen wisely.
Meanwhile, the following works for me: gconftool-2 -s /apps/telepathy/mc/accounts/jabber0/param-priority -t int <priority-value>
Created an attachment (id=895) [details] patch for telepathy-gabble to enable different priorities Here is the patch I've just hacked up to introduce param-priority-{available,away} against telepathy-gabble tarball as seen here - http://repository.maemo.org/pool/maemo4.1/free/t/telepathy-gabble/ As I have no idea where are the sources for accounts control panel applet, there is no user interface to control the parameters, besides configuration editor. And since I have no more idea of where upstream lives I'm leaving it up to interested parties to submit patch upstream.
(In reply to comment #7) > Created an attachment (id=895) [details] [details] > patch for telepathy-gabble to enable different priorities You are missing the "break"s in the get_properties() function. > Here is the patch I've just hacked up to introduce > param-priority-{available,away} against telepathy-gabble tarball as seen here - > http://repository.maemo.org/pool/maemo4.1/free/t/telepathy-gabble/ You can submit the patch to the upstream, using bugs.freedesktop.org (but I already did: https://bugs.freedesktop.org/show_bug.cgi?id=17219 ) > As I have no idea where are the sources for accounts control panel applet, > there is no user interface to control the parameters, besides configuration > editor. You can also use the mc-account command-line tool; the accounts control panel applet is closed-source, unfortunately.
> (In reply to comment #7) > > Created an attachment (id=895) [details] [details] [details] > > patch for telepathy-gabble to enable different priorities > > You are missing the "break"s in the get_properties() function. Oops, thanks, it's been late and I haven't yet set up a comfortable environment for maemo development (I've only got N810 3 days ago or so). > > Here is the patch I've just hacked up to introduce > > param-priority-{available,away} against telepathy-gabble tarball as seen here - > > http://repository.maemo.org/pool/maemo4.1/free/t/telepathy-gabble/ > > You can submit the patch to the upstream, using bugs.freedesktop.org (but I > already did: https://bugs.freedesktop.org/show_bug.cgi?id=17219 ) Thanks for the pointer, I think I'll attach the patch once I fix the switch later today to both bugs. > > As I have no idea where are the sources for accounts control panel applet, > > there is no user interface to control the parameters, besides configuration > > editor. > > You can also use the mc-account command-line tool; the accounts control panel > applet is closed-source, unfortunately. > Ah, that's why I couldn't find it anywhere. Good that I haven't spent too much time trying to ;-) Well, I personally, can live with gconf editor (or whatever it is called in maemo), thought it would be nice to improve other users experience... But well, I've done what I could.
Created an attachment (id=896) [details] corrected patch I couldn't sleep well at work, knowing there's a patch with missing breaks available in my name ;-) So, here is the fixed one.
...so according to the upstream ticket it's supported in telepathy-gabble, but not in the Maemo UI.
Marking patches of interest to Diablo (Maemo4) community updates, please excuse the noise.
I've left some comments on the upstream bug at <http://bugs.freedesktop.org/show_bug.cgi?id=17219>.
This WILL NOT be fixed for Maemo5/Fremantle. Keeping it open for Maemo6/Harmattan.
(In reply to comment #6) > Meanwhile, the following works for me: > > gconftool-2 -s /apps/telepathy/mc/accounts/jabber0/param-priority -t int > <priority-value> > There is no /apps/telepathy in Maemo 5 so I'm not sure it'll work that way. What would be the workaround for Maemo5 (since it won't be fixed for Fremantle).
Get mc-tool: # apt-get install libmissioncontrol-utils Find out what MC calls the account you want to tweak with `mc-tool list`, which will produce something like this: $ mc-tool list ring/tel/ring gabble/jabber/will_2ethompson_40collabora_2eco_2euk0 gabble/jabber/another-jabber-account sofiasip/sip/blahblahblah ... Now set the priority to 1337: $ mc-tool update gabble/jabber/will_2ethompson_40collabora_2eco_2euk0 int:priority=1337 Next time you connect, the priority for that account will be 1337. Note that due to an implementation detail of the account UI, if you subsequently edit the account in the UI, the priority setting will be lost.
(In reply to comment #16) > $ mc-tool update gabble/jabber/will_2ethompson_40collabora_2eco_2euk0 > int:priority=1337 > Thanks, works pretty fine. Idea for when this will be implemented in the UI: allow priority to change wether the account is online/away/busy etc. Cheers,
(In reply to comment #17) > Thanks, works pretty fine. Idea for when this will be implemented in the UI: > allow priority to change wether the account is online/away/busy etc. I like this idea. We should move it to the brainstorming pages, since the internal bug is closed as WONTFIX anyway.
Note that the maximum priority value allowed by the protocol is 127. So I wouldn't go setting it to 1337.
Internal bug is closed as WONTFIX for Maemo5 - reflecting state here. MeeGo Handset is where the unstable development is taking place. If you are a developer (not a "normal" user) feedback about / retesting on MeeGo Handset issues is specially welcome, e.g. via the MeeGo bugtracker at https://bugs.meego.com. Please note that MeeGo for the Nokia N900 is unstable and by no means ready for end-users. See http://wiki.meego.com/ARM/N900 for more information and be aware of the risks of trying unstable software.
Proper fix for Google Talk (jabber) accounts for Maemo 5 is in CSSU-Devel repository. It adds new settings option in Accounts UI settings dialog. For testing see: http://talk.maemo.org/showthread.php?p=1465798#post1465798
And fix for normal Jabber (non Google Talk) accounts is there too, see: http://talk.maemo.org/showthread.php?p=1492687#post1492687