diff --git a/src/chat/chat-room/client-group-to-basic-chat-room.cpp b/src/chat/chat-room/client-group-to-basic-chat-room.cpp index 5890f8252..e5c31bb8c 100644 --- a/src/chat/chat-room/client-group-to-basic-chat-room.cpp +++ b/src/chat/chat-room/client-group-to-basic-chat-room.cpp @@ -79,8 +79,8 @@ public: shared_ptr bcr = cgcr->getCore()->onlyGetOrCreateBasicChatRoom(invitedAddresses.front()); L_SET_CPP_PTR_FROM_C_OBJECT(lcr, bcr); bcr->getPrivate()->setState(ChatRoom::State::Instantiated); - bcr->getPrivate()->setState(ChatRoom::State::Created); cgcr->getCore()->getPrivate()->insertChatRoom(bcr); + bcr->getPrivate()->setState(ChatRoom::State::Created); cgcr->getCore()->getPrivate()->insertChatRoomWithDb(bcr); return; }