Commit edd26b98 authored by Ronan's avatar Ronan

fix(ClientGroupChatRoom): avoid conference created event insertion for the moment

parent f1ad71b8
......@@ -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<ConferenceEvent>(
EventLog::Type::ConferenceCreated,
time(nullptr),
d->chatRoomId
));
#endif
}
void ClientGroupChatRoom::onParticipantAdded (const shared_ptr<ConferenceParticipantEvent> &event, bool isFullState) {
......
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