about summary refs log tree commit diff stats
path: root/src/xmpp/roster.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/roster.c')
-rw-r--r--src/xmpp/roster.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c
index 8e8dc328..f29ac09b 100644
--- a/src/xmpp/roster.c
+++ b/src/xmpp/roster.c
@@ -293,6 +293,11 @@ roster_add_to_group(const char * const group, const char * const barejid)
 
     if (contact != NULL) {
         if (p_contact_in_group(contact, group)) {
+            if (p_contact_name(contact) != NULL) {
+                prof_handle_already_in_group(p_contact_name(contact), group);
+            } else {
+                prof_handle_already_in_group(p_contact_barejid(contact), group);
+            }
             return;
         }