if (message.getFrom().asBareJid().equals(roomJid)) {
if (message.getType() == AbstractMessage.Type.GROUPCHAT) {
// This is a <message/> stanza from the room JID (or from the occupant JID of the entity that set the subject), with a <subject/> element but no <body/> element
if (message.getSubject() != null && message.getBody() == null) {
Date date;
DelayedDelivery delayedDelivery = message.getExtension(DelayedDelivery.class);
if (delayedDelivery != null) {
date = delayedDelivery.getTimeStamp();
} else {
date = new Date();
}
notifySubjectChangeListeners(new SubjectChangeEvent(ChatRoom.this, message.getSubject(), message.getFrom().getResource(), delayedDelivery != null, date));
} else {