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) {