From 80159fbe1bc2f3cb6c8ebde1de0f69e099e69ddd Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Fri, 16 Aug 2013 16:16:49 +0300 Subject: [PATCH] ucs: add unique ID when creating new group sipe_group_compare requires each group to have a unique ID. This fixes the incorrect removal of buddy entries when the same buddy has been added to multiple groups on UCS. --- src/core/sipe-ucs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/sipe-ucs.c b/src/core/sipe-ucs.c index 286d3855..2cee1317 100644 --- a/src/core/sipe-ucs.c +++ b/src/core/sipe-ucs.c @@ -63,6 +63,7 @@ struct sipe_ucs { gchar *ews_url; GSList *deferred_requests; GSList *pending_requests; + guint group_id; gboolean migrated; gboolean shutting_down; }; @@ -360,7 +361,8 @@ static void sipe_ucs_get_im_item_list_response(struct sipe_core_private *sipe_pr name, key, change, - 0); + /* sipe_group must have unique ID */ + ++sipe_private->ucs->group_id); const sipe_xml *member_node; g_free(name); -- 2.11.4.GIT