buddy: check for obsolete groups
commite87eefb8e254fd01b642372e7c7aa1daa0550ea1
authorStefan Becker <chemobejk@gmail.com>
Sun, 18 Aug 2013 13:58:11 +0000 (18 16:58 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sun, 18 Aug 2013 13:58:11 +0000 (18 16:58 +0300)
treebc06b2fa23731163c2578ae47fd181c978a295fd
parent10e501d77e97e4aced8388088dcda74a01185927
buddy: check for obsolete groups

Before we process the updated UCS contact list we set the obsolete flag
on all groups a buddy is associated with. When a buddy is still
associated with a group on the list then this flag gets reset. After
processing the list we remove the buddy from all the groups which still
have the obsolete flag set.

This handles the case when a buddy is associated with multiple groups
and is removed from some groups by another client.
src/core/sipe-buddy.c