diff options
author | hristoterezov <hristo@jitsi.org> | 2013-12-11 10:11:32 +0200 |
---|---|---|
committer | hristoterezov <hristo@jitsi.org> | 2013-12-11 10:11:32 +0200 |
commit | f320157c7b37552a8910783d17199079ae5397aa (patch) | |
tree | 30507295dccea97fe35a2f6fdb199443762459ad /src/net | |
parent | ede750cc8a2b018b594dcf34b88f031326820879 (diff) | |
download | jitsi-f320157c7b37552a8910783d17199079ae5397aa.zip jitsi-f320157c7b37552a8910783d17199079ae5397aa.tar.gz jitsi-f320157c7b37552a8910783d17199079ae5397aa.tar.bz2 |
Fixes the issue with the chat rooms added from "Add chat room" dialog that
is not saved after restart.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomTableDialog.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomTableDialog.java b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomTableDialog.java index c15552e..8368dea 100644 --- a/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomTableDialog.java +++ b/src/net/java/sip/communicator/impl/gui/main/chatroomslist/ChatRoomTableDialog.java @@ -394,6 +394,19 @@ public class ChatRoomTableDialog false); String nickName = nicknameField.getText().trim(); + + if(!chatRoomWrapper.isPersistent()) + { + chatRoomWrapper.setPersistent(true); + + ConfigurationUtils.saveChatRoom( + chatRoomWrapper.getParentProvider() + .getProtocolProvider(), + chatRoomWrapper.getChatRoomID(), + chatRoomWrapper.getChatRoomID(), + chatRoomWrapper.getChatRoomName()); + } + ConfigurationUtils.updateChatRoomProperty( chatRoomWrapper.getParentProvider().getProtocolProvider(), chatRoomWrapper.getChatRoomID(), "userNickName", nickName); |