metacontact ordering depending of priority problem
The metacontact ordering does not follow what is said.
From http://trac.gajim.org/wiki/MetaContacts :
- native jabber contacts above transport-ones
- then, higher priority
- then, "higher" status (prefer 'online' over 'away')
- then, random.
The first dot-point is not handled; in src/common/contacts.py's _get_data_score(), jid_is_transport() is used. jid_is_transport() tells if the JID is the transport itself, not a contact on it. Using if common.gajim.get_transport_name_from_jid(jid) == None: works as expected.
I believe the score adjustment in that "if" should be: score += (1+contact.priority)*10
That adjusts for Google Talk's "0" priority. (It may be necessary to add "and contact.priority >= 0" to the if statement if negative priorities are to have negative scores).
Thanks for the cool client.