don't save only MUC

This commit is contained in:
ilya khlevnoy 2022-12-02 13:02:57 +03:00
parent 40f2138759
commit b5726c344d

View File

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