mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Do not notify message delivery if the core is being shut down.
This commit is contained in:
parent
15b38e3a8b
commit
6a119f971f
1 changed files with 6 additions and 0 deletions
|
|
@ -604,6 +604,12 @@ static LinphoneChatMessageState chatStatusSal2Linphone(SalMessageDeliveryStatus
|
|||
}
|
||||
|
||||
static void message_delivery_update(SalOp *op, SalMessageDeliveryStatus status) {
|
||||
auto lc = reinterpret_cast<LinphoneCore *>(op->get_sal()->get_user_pointer());
|
||||
if (linphone_core_get_global_state(lc) != LinphoneGlobalOn) {
|
||||
static_cast<SalReferOp *>(op)->reply(SalReasonDeclined);
|
||||
return;
|
||||
}
|
||||
|
||||
LinphonePrivate::ChatMessage *msg = reinterpret_cast<LinphonePrivate::ChatMessage *>(op->get_user_pointer());
|
||||
if (!msg)
|
||||
return; // Do not handle delivery status for isComposing messages.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue