Commit 2a16139e authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed imdn id not being store on outgoing file transfer messages

parent 7792f64b
......@@ -766,8 +766,9 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
soci::session *session = dbSession.getBackendSession<soci::session>();
const int &state = static_cast<int>(chatMessage->getState());
*session << "UPDATE conference_chat_message_event SET state = :state WHERE event_id = :eventId",
soci::use(state), soci::use(eventId);
const string &imdnMessageId = chatMessage->getImdnMessageId();
*session << "UPDATE conference_chat_message_event SET state = :state, imdn_message_id = :imdnMessageId WHERE event_id = :eventId",
soci::use(state), soci::use(imdnMessageId), soci::use(eventId);
//TODO: improve
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