Commit 2a63b401 authored by Holger Bergunde's avatar Holger Bergunde Committed by holger.bergunde

Fixed subscriptions in new user in just married plugin

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13206 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0dc6204d
......@@ -121,7 +121,7 @@ public class JustMarriedPlugin implements Plugin {
for (Group gr : item.getInvisibleSharedGroups()) {
justCreated.addInvisibleSharedGroup(gr);
}
newRoster.updateRosterItem(justCreated);
addNewUserToOthersRoster(newUser, item, currentUserName);
} catch (UserAlreadyExistsException e) {
......@@ -129,6 +129,9 @@ public class JustMarriedPlugin implements Plugin {
} catch (SharedGroupException e) {
Log.error("Could not create roster item for user " + item.getJid()
+ " because it is a contact from a shared group", e);
} catch (UserNotFoundException e) {
Log.error("Could not update Roster item for user " + newUser.getName()
+ " because it was not properly created.", e);
}
}
......@@ -157,6 +160,7 @@ public class JustMarriedPlugin implements Plugin {
justCreated.setAskStatus(oldUserOnOthersRoster.getAskStatus());
justCreated.setRecvStatus(oldUserOnOthersRoster.getRecvStatus());
justCreated.setSubStatus(oldUserOnOthersRoster.getSubStatus());
otherRoster.updateRosterItem(justCreated);
}
} catch (UserAlreadyExistsException e) {
Log.error("Could not create roster item for user " + newUser.getUsername(), e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment