Commit 54a0a8c1 authored by Ghislain MARY's avatar Ghislain MARY

Fix wrong SQL request to insert one-to-one chat room in DB.

parent 71fd0d0a
...@@ -2767,6 +2767,7 @@ void MainDb::insertOneToOneConferenceChatRoom (const shared_ptr<AbstractChatRoom ...@@ -2767,6 +2767,7 @@ void MainDb::insertOneToOneConferenceChatRoom (const shared_ptr<AbstractChatRoom
long long chatRoomId = d->selectOneToOneChatRoomId(participantASipAddressId, participantBSipAddressId); long long chatRoomId = d->selectOneToOneChatRoomId(participantASipAddressId, participantBSipAddressId);
if (chatRoomId == -1) { if (chatRoomId == -1) {
chatRoomId = d->selectChatRoomId(chatRoom->getChatRoomId());
StatementBind stmt(*d->preparedStatements->insert[Statements::InsertOneToOneChatRoom]); StatementBind stmt(*d->preparedStatements->insert[Statements::InsertOneToOneChatRoom]);
stmt.bind(chatRoomId); stmt.bind(chatRoomId);
stmt.bind(participantASipAddressId); stmt.bind(participantASipAddressId);
......
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