Guest User

kopete facebook group path

a guest
Aug 17th, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.41 KB | None | 0 0
  1. Index: protocols/jabber/jabberbasecontact.cpp
  2. ===================================================================
  3. --- protocols/jabber/jabberbasecontact.cpp      (revision 1311379)
  4. +++ protocols/jabber/jabberbasecontact.cpp      (working copy)
  5. @@ -143,14 +143,15 @@
  6.                 * that information.
  7.                 */
  8.                 Kopete::GroupList groupsToRemoveFrom, groupsToAddTo;
  9. -
  10. +
  11.                 // find all groups our contact is in but that are not in the server side roster
  12. -               for ( int i = 0; i < metaContact()->groups().count (); i++ )
  13. -               {
  14. -                       if ( !item.groups().contains ( metaContact()->groups().at(i)->displayName () ) )
  15. -                               groupsToRemoveFrom.append ( metaContact()->groups().at ( i ) );
  16. -               }
  17. -
  18. +               if (item.jid().domain() != "chat.facebook.com")
  19. +                       for ( int i = 0; i < metaContact()->groups().count (); i++ )
  20. +                       {
  21. +                               if ( !item.groups().contains ( metaContact()->groups().at(i)->displayName () ) )
  22. +                                       groupsToRemoveFrom.append ( metaContact()->groups().at ( i ) );
  23. +                       }
  24. +
  25.                 // now find all groups that are in the server side roster but not in the local group
  26.                 for ( int i = 0; i < item.groups().count (); i++ )
  27.                 {
Advertisement
Add Comment
Please, Sign In to add comment