don't save only MUC
@@ -226,14 +226,14 @@ public class ChatTranscriptPlugin implements ChatRoomListener {
if (!pref.isChatHistoryEnabled()) {
return;
}
-
- EntityJid jid = room.getJid();
-
//If this it a MUC then don't persist this chat.
- if(jid.hasNoResource() && !jid.getDomain().equals(domainServer)){
+ if(room.getChatType() == Message.Type.groupchat){
return;
}
+ EntityJid jid = room.getJid();
+
+
//If this is a one-to-one chat( "user@domain.local" )
if(jid.hasResource() && jid.getDomain().equals(domainServer)){
jid = room.getBareJid();
