mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-10-29 19:57:28 +00:00
don't save only MUC
This commit is contained in:
parent
40f2138759
commit
b5726c344d
@ -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)){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user