forked from mirrors/linphone-iphone
Small improvement of setState on ChatMessage in reception
This commit is contained in:
parent
71282b2598
commit
7e6b57a049
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue