Serge Matveenko wrote:
> i don't think this is totally random, 'cause user is usually cares
> about groups of the contacts and grouping by any of the groups given
> to contact seems logical.
if I put a contact in several group, there is no order, XML is not
ordered, so it's why it's random the place it takes in contact.groups.
> but you are right, its possible to have contacts "floating" from one
> window to another...
> i see several workarounds:
> 1. force user to define one and only one primary group for contact
impossible: it's not in xmpp protocole. There is no primary group concept.
> 2. sort groups alphabetically on window creation and than use first
> group like now
It is feasable
> 3. try to choose open window for every group, that will cause more
> grouped but not less random behavior
Why not, but that means that you'll once see contact1 in group1 because
you're chatting with someone in group1, and another time in group2
because you're chatting with someone in group2 ...
> it looks for me that first solution looks best, but it will cause the
> biggest code changes
Something else: what happen if you open a chat window with someone, and
then you modify the groups in which this contact is?
Gajim-devel mailing list