From edd26b989024dbc6a0f2d0605ecda485ab5de6dc Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Thu, 21 Dec 2017 18:22:06 +0100 Subject: [PATCH] fix(ClientGroupChatRoom): avoid conference created event insertion for the moment --- src/chat/chat-room/client-group-chat-room.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/chat/chat-room/client-group-chat-room.cpp b/src/chat/chat-room/client-group-chat-room.cpp index 55bb66492..ae517e199 100644 --- a/src/chat/chat-room/client-group-chat-room.cpp +++ b/src/chat/chat-room/client-group-chat-room.cpp @@ -383,11 +383,16 @@ void ClientGroupChatRoom::onFirstNotifyReceived (const IdentityAddress &addr) { d->setState(ChatRoom::State::Created); d->chatRoomListener->onChatRoomInsertInDatabaseRequested(getSharedFromThis()); + + // TODO: Bug. Event is inserted many times. + // Avoid this in the future. Deal with signals/slots system. + #if 0 getCore()->getPrivate()->mainDb->addEvent(make_shared( EventLog::Type::ConferenceCreated, time(nullptr), d->chatRoomId )); + #endif } void ClientGroupChatRoom::onParticipantAdded (const shared_ptr &event, bool isFullState) {