Commit d6d9e399 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fixed IMDN and isComposing sent being stored in db

parent bbebdbf5
......@@ -353,6 +353,8 @@ void ChatMessagePrivate::sendImdn (Imdn::Type imdnType, LinphoneReason reason) {
content->setBody(Imdn::createXml(imdnId, time, imdnType, reason));
msg->addContent(*content);
msg->setToBeStored(false);
msg->getPrivate()->send();
}
......@@ -533,7 +535,8 @@ void ChatMessagePrivate::send () {
currentSendStep |= ChatMessagePrivate::Step::Started;
storeInDb();
if (toBeStored)
storeInDb();
if ((currentSendStep & ChatMessagePrivate::Step::FileUpload) == ChatMessagePrivate::Step::FileUpload) {
lInfo() << "File upload step already done, skipping";
......
......@@ -78,6 +78,7 @@ void ChatRoomPrivate::sendIsComposingNotification () {
string payload = isComposingHandler->marshal(isComposing);
if (!payload.empty()) {
shared_ptr<ChatMessage> chatMessage = createChatMessage(ChatMessage::Direction::Outgoing);
chatMessage->setToBeStored(false);
Content *content = new Content();
content->setContentType(ContentType::ImIsComposing);
content->setBody(payload);
......
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