Commit a26a0b3f authored by Chris's avatar Chris Committed by daryl herzmann

OF-1134 - Update copied users nickname on other users rosters (#905)

* Update JustMarriedPlugin.java

* OF-1134 - Update copied users nickname on other users rosters

* OF-1134 - Update copied users nickname on other users rosters

Updated version and changelog
parent d44d12e9
......@@ -44,6 +44,11 @@
Just married Plugin Changelog
</h1>
<p><b>1.2.2</b> -- October 26, 2017</p>
<ul>
<li>When copying a user, the new user's nickname will be updated on other users rosters</li>
</ul>
<p><b>1.2.1</b> -- May 31, 2017</p>
<ul>
<li>Updated to match new API in Openfire 4.2.0</li>
......
......@@ -5,8 +5,8 @@
<name>Just married</name>
<description>Allows admins to rename or copy users</description>
<author>Holger Bergunde</author>
<version>1.2.1</version>
<date>05/31/2017</date>
<version>1.2.2</version>
<date>10/26/2017</date>
<minServerVersion>4.0.0</minServerVersion>
<adminconsole>
......
......@@ -157,7 +157,7 @@ public class JustMarriedPlugin implements Plugin {
RosterItem justCreated = otherRoster.createRosterItem(
XMPPServer.getInstance().createJID(newUser.getUsername(), null),
oldUserOnOthersRoster.getNickname(), oldUserOnOthersRoster.getGroups(), true, true);
newUser.getName(), oldUserOnOthersRoster.getGroups(), true, true);
justCreated.setAskStatus(oldUserOnOthersRoster.getAskStatus());
justCreated.setRecvStatus(oldUserOnOthersRoster.getRecvStatus());
justCreated.setSubStatus(oldUserOnOthersRoster.getSubStatus());
......
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