Commit 5252d970 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Change subject only if message has a subject and no body. JM-1144

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9289 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5ff242b6
...@@ -235,8 +235,9 @@ public class LocalMUCUser implements MUCUser { ...@@ -235,8 +235,9 @@ public class LocalMUCUser implements MUCUser {
} }
else { else {
try { try {
if (packet.getSubject() != null && packet.getSubject().trim().length() > 0 if (packet.getSubject() != null && packet.getSubject().trim().length() > 0 &&
&& Message.Type.groupchat == packet.getType()) { Message.Type.groupchat == packet.getType() &&
(packet.getBody() == null || packet.getBody().trim().isEmpty())) {
// An occupant is trying to change the room's subject // An occupant is trying to change the room's subject
role.getChatRoom().changeSubject(packet, role); role.getChatRoom().changeSubject(packet, role);
......
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