Commit 1c9f356e authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fixed crash in chat room state changed callback if trying to find chat room

parent 017f4790
...@@ -79,8 +79,8 @@ public: ...@@ -79,8 +79,8 @@ public:
shared_ptr<AbstractChatRoom> bcr = cgcr->getCore()->onlyGetOrCreateBasicChatRoom(invitedAddresses.front()); shared_ptr<AbstractChatRoom> bcr = cgcr->getCore()->onlyGetOrCreateBasicChatRoom(invitedAddresses.front());
L_SET_CPP_PTR_FROM_C_OBJECT(lcr, bcr); L_SET_CPP_PTR_FROM_C_OBJECT(lcr, bcr);
bcr->getPrivate()->setState(ChatRoom::State::Instantiated); bcr->getPrivate()->setState(ChatRoom::State::Instantiated);
bcr->getPrivate()->setState(ChatRoom::State::Created);
cgcr->getCore()->getPrivate()->insertChatRoom(bcr); cgcr->getCore()->getPrivate()->insertChatRoom(bcr);
bcr->getPrivate()->setState(ChatRoom::State::Created);
cgcr->getCore()->getPrivate()->insertChatRoomWithDb(bcr); cgcr->getCore()->getPrivate()->insertChatRoomWithDb(bcr);
return; return;
} }
......
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