Commit cb045ce1 authored by Ronan's avatar Ronan
Browse files

fix(ChatRoom): rename some functions

parent a9c557ae
......@@ -64,7 +64,7 @@ static inline string resolveWorkaroundClientGroupChatRoomAddress (
// -----------------------------------------------------------------------------
shared_ptr<ChatRoom> CorePrivate::createChatRoom (const Address &peerAddress, bool isRtt) {
shared_ptr<ChatRoom> CorePrivate::createBasicChatRoom (const Address &peerAddress, bool isRtt) {
L_Q();
shared_ptr<ChatRoom> chatRoom;
......@@ -75,7 +75,7 @@ shared_ptr<ChatRoom> CorePrivate::createChatRoom (const Address &peerAddress, bo
chatRoom = make_shared<BasicChatRoom>(q->getSharedFromThis(), peerAddress);
ChatRoomPrivate *dChatRoom = chatRoom->getPrivate();
insertChatRoom(chatRoom);
dChatRoom->setState(ChatRoom::State::Instantiated);
dChatRoom->setState(ChatRoom::State::Created);
......@@ -176,7 +176,8 @@ shared_ptr<ChatRoom> Core::getOrCreateBasicChatRoom (const Address &peerAddress,
if (chatRoom)
return chatRoom;
chatRoom = d->createChatRoom(peerAddress, isRtt);
chatRoom = d->createBasicChatRoom(peerAddress, isRtt);
d->insertChatRoom(chatRoom);
d->insertChatRoomWithDb(chatRoom);
return chatRoom;
......
......@@ -35,7 +35,7 @@ public:
void insertChatRoom (const std::shared_ptr<ChatRoom> &chatRoom);
void insertChatRoomWithDb (const std::shared_ptr<ChatRoom> &chatRoom);
std::shared_ptr<ChatRoom> createChatRoom (const Address &peerAddress, bool isRtt);
std::shared_ptr<ChatRoom> createBasicChatRoom (const Address &peerAddress, bool isRtt);
private:
void deleteChatRoom (const std::string &peerAddress);
......
......@@ -1186,7 +1186,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : CoreAccessor(core), AbstractDb(*
(void)lastNotifyId;
if (capabilities & static_cast<int>(ChatRoom::Capabilities::Basic)) {
chatRoom = core->getPrivate()->createChatRoom(
chatRoom = core->getPrivate()->createBasicChatRoom(
Address(sipAddress),
capabilities & static_cast<int>(ChatRoom::Capabilities::RealTimeText)
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment