mirror of
https://github.com/igniterealtime/Spark.git
synced 2026-08-18 11:10:02 +00:00
LIVE-1200 Do not allow changing of nicknames.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4980 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
BIN
build/lib/dist/smack.jar
vendored
BIN
build/lib/dist/smack.jar
vendored
Binary file not shown.
BIN
build/lib/dist/smackx-debug.jar
vendored
BIN
build/lib/dist/smackx-debug.jar
vendored
Binary file not shown.
BIN
build/lib/dist/smackx.jar
vendored
BIN
build/lib/dist/smackx.jar
vendored
Binary file not shown.
@ -81,6 +81,15 @@
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library" exported="">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/../lib/merge/backport-util-concurrent.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library" exported="">
|
||||
<library>
|
||||
<CLASSES>
|
||||
@ -108,6 +117,15 @@
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library" exported="">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/../lib/merge/jtoaster-1.0.4.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library" exported="">
|
||||
<library>
|
||||
<CLASSES>
|
||||
@ -198,15 +216,6 @@
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="jar://$MODULE_DIR$/../lib/merge/jtoaster.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntryProperties />
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
|
||||
Binary file not shown.
@ -77,6 +77,8 @@ public final class ConferenceRoomInfo extends JPanel implements ChatRoomListener
|
||||
private PacketListener listener = null;
|
||||
|
||||
|
||||
private boolean allowNicknameChange = true;
|
||||
|
||||
/**
|
||||
* Creates a new RoomInfo instance using the specified ChatRoom. The RoomInfo
|
||||
* component is responsible for monitoring all activity in the ChatRoom.
|
||||
@ -522,7 +524,10 @@ public final class ConferenceRoomInfo extends JPanel implements ChatRoomListener
|
||||
|
||||
changeNicknameAction.putValue(Action.NAME, "Change Nickname");
|
||||
changeNicknameAction.putValue(Action.SMALL_ICON, SparkRes.getImageIcon(SparkRes.DESKTOP_IMAGE));
|
||||
popup.add(changeNicknameAction);
|
||||
|
||||
if (allowNicknameChange) {
|
||||
popup.add(changeNicknameAction);
|
||||
}
|
||||
}
|
||||
|
||||
Action chatAction = new AbstractAction() {
|
||||
@ -683,6 +688,10 @@ public final class ConferenceRoomInfo extends JPanel implements ChatRoomListener
|
||||
|
||||
popup.show(list, evt.getX(), evt.getY());
|
||||
}
|
||||
|
||||
public void setNicknameChangeAllowed(boolean allowed) {
|
||||
allowNicknameChange = allowed;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user