diff --git a/src/rostermanager.cpp b/src/rostermanager.cpp index bfbe27aafc6f289a5492dd612c8d02184de8a3d0..8892d6325040c0d8b80f7719185e7598603a2af0 100644 --- a/src/rostermanager.cpp +++ b/src/rostermanager.cpp @@ -211,7 +211,7 @@ void RosterManager::handleRemoteRosterResponse(boost::shared_ptrgetFactory()->createBuddy(this, buddyInfo); setBuddy(buddy); @@ -299,7 +299,7 @@ void RosterManager::handleSubscription(Swift::Presence::ref presence) { buddyInfo.alias = ""; buddyInfo.legacyName = Buddy::JIDToLegacyName(presence->getTo()); buddyInfo.subscription = "both"; - buddyInfo.flags = 0; + buddyInfo.flags = Buddy::buddFlagsFromJID(presence->getTo()); LOG4CXX_INFO(logger, m_user->getJID().toString() << ": Subscription received for new buddy " << buddyInfo.legacyName << " => adding to legacy network"); buddy = m_component->getFactory()->createBuddy(this, buddyInfo); @@ -361,7 +361,7 @@ void RosterManager::handleSubscription(Swift::Presence::ref presence) { buddyInfo.alias = ""; buddyInfo.legacyName = Buddy::JIDToLegacyName(presence->getTo()); buddyInfo.subscription = "both"; - buddyInfo.flags = 0; + buddyInfo.flags = Buddy::buddFlagsFromJID(presence->getTo()); buddy = m_component->getFactory()->createBuddy(this, buddyInfo); setBuddy(buddy);