Commit 7e6b57a0 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Small improvement of setState on ChatMessage in reception

parent 71282b25
......@@ -327,11 +327,12 @@ LinphoneReason ChatMessagePrivate::receive () {
shared_ptr<Core> core = q->getCore();
shared_ptr<ChatRoom> chatRoom = q->getChatRoom();
setState(ChatMessage::State::Delivered);
// ---------------------------------------
// Start of message modification
// ---------------------------------------
if ((currentRecvStep &ChatMessagePrivate::Step::Cpim) == ChatMessagePrivate::Step::Cpim) {
lInfo() << "Cpim step already done, skipping";
} else {
......
......@@ -183,7 +183,6 @@ LinphoneReason ChatRoomPrivate::messageReceived (SalOp *op, const SalMessage *sa
msg->setInternalContent(content);
msg->getPrivate()->setTime(salMsg->time);
msg->getPrivate()->setState(ChatMessage::State::Delivered);
msg->setImdnMessageId(op->get_call_id());
const SalCustomHeader *ch = op->get_recv_custom_header();
......
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