mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 19:29:27 +00:00
fix(callbacks): do not unref chat messagegit status! It's a shared ptr now!!!
This commit is contained in:
parent
707d94c34e
commit
d8b0a722dc
3 changed files with 2 additions and 6 deletions
|
|
@ -549,9 +549,6 @@ static void message_delivery_update(SalOp *op, SalMessageDeliveryStatus status){
|
|||
if (linphone_chat_message_get_chat_room(chat_msg) != NULL) {
|
||||
linphone_chat_message_update_state(chat_msg, chatStatusSal2Linphone(status));
|
||||
}
|
||||
if (status != SalMessageDeliveryInProgress) { /*only release op if not in progress*/
|
||||
linphone_chat_message_unref(chat_msg);
|
||||
}
|
||||
}
|
||||
|
||||
static void info_received(SalOp *op, SalBodyHandler *body_handler) {
|
||||
|
|
|
|||
|
|
@ -535,9 +535,8 @@ public:
|
|||
>
|
||||
static inline bctbx_list_t *getResolvedCListFromCppList (const std::list<std::shared_ptr<CppType>> &cppList) {
|
||||
bctbx_list_t *result = nullptr;
|
||||
for (const auto &value : cppList) {
|
||||
for (const auto &value : cppList)
|
||||
result = bctbx_list_append(result, belle_sip_object_ref(getCBackPtr(value)));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ void ChatMessagePrivate::send () {
|
|||
// Start of message modification
|
||||
// ---------------------------------------
|
||||
|
||||
if (applyModifiers) {
|
||||
if (applyModifiers) {
|
||||
// Do not multipart or encapsulate with CPIM in an old ChatRoom to maintain backward compatibility
|
||||
if (q->getChatRoom()->canHandleParticipants()) {
|
||||
if ((currentSendStep &ChatMessagePrivate::Step::Multipart) == ChatMessagePrivate::Step::Multipart) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue