diff options
author | Damian Minkov <damencho@jitsi.org> | 2013-08-22 16:22:03 +0300 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2013-08-22 16:23:25 +0300 |
commit | 415f7691ccaaa4437d33df4adfe553d54776cb00 (patch) | |
tree | 077588e95a60cc4f68cc5d5a40668d5c9048b748 /src/net/java/sip | |
parent | 2ffe1873bd3a5c7cc61c89ecf38aced1eae1b627 (diff) | |
download | jitsi-415f7691ccaaa4437d33df4adfe553d54776cb00.zip jitsi-415f7691ccaaa4437d33df4adfe553d54776cb00.tar.gz jitsi-415f7691ccaaa4437d33df4adfe553d54776cb00.tar.bz2 |
Do not create persistent chatrooms when inviting contacts to existing one to one chat.
Diffstat (limited to 'src/net/java/sip')
4 files changed, 15 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java b/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java index f0818ef..7651e7c 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java @@ -2479,7 +2479,8 @@ public class ChatPanel = conferenceChatManager.createChatRoom( inviteChatTransport.getProtocolProvider(), chatContacts, - reason); + reason, + false); conferenceChatSession = new ConferenceChatSession(this, chatRoomWrapper); diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/conference/ConferenceChatManager.java b/src/net/java/sip/communicator/impl/gui/main/chat/conference/ConferenceChatManager.java index f02dd3b..b5b0fa1 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chat/conference/ConferenceChatManager.java +++ b/src/net/java/sip/communicator/impl/gui/main/chat/conference/ConferenceChatManager.java @@ -720,14 +720,17 @@ public class ConferenceChatManager * @param protocolProvider the parent protocol provider. * @param contacts the contacts invited when creating the chat room. * @param reason + * @param persistent is the room persistent * @return the <tt>ChatRoomWrapper</tt> corresponding to the created room */ public ChatRoomWrapper createChatRoom( ProtocolProviderService protocolProvider, Collection<String> contacts, - String reason) + String reason, + boolean persistent) { - return this.createChatRoom(null, protocolProvider, contacts, reason); + return this.createChatRoom( + null, protocolProvider, contacts, reason, persistent); } /** @@ -739,16 +742,18 @@ public class ConferenceChatManager * @param protocolProvider the parent protocol provider. * @param contacts the contacts invited when creating the chat room. * @param reason + * @param persistent is the room persistent * @return the <tt>ChatRoomWrapper</tt> corresponding to the created room */ public ChatRoomWrapper createChatRoom( String roomName, ProtocolProviderService protocolProvider, Collection<String> contacts, - String reason) + String reason, + boolean persistent) { return createChatRoom( - roomName, protocolProvider, contacts, reason, true, true); + roomName, protocolProvider, contacts, reason, true, persistent); } /** diff --git a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/createforms/CreateChatRoomDialog.java b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/createforms/CreateChatRoomDialog.java index beb6623..8787588 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/createforms/CreateChatRoomDialog.java +++ b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/createforms/CreateChatRoomDialog.java @@ -106,7 +106,8 @@ public class CreateChatRoomDialog .createChatRoom(chatRoomName, chatRoomProvider.getProtocolProvider(), null, - ""); + "", + true); } this.dispose(); } diff --git a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/createforms/CreateChatRoomWizard.java b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/createforms/CreateChatRoomWizard.java index 00488b1..9202634 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/createforms/CreateChatRoomWizard.java +++ b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/createforms/CreateChatRoomWizard.java @@ -66,7 +66,8 @@ public class CreateChatRoomWizard .createChatRoom(newChatRoom.getChatRoomName(), newChatRoom.getProtocolProvider(), null, - ""); + "", + true); } } } |