sms: export uncomplete multipart messages as well
Uncompleted multipart SMS will be exported to DBus, where only the "state" property is valid, so that we allow completely removing those uncompleted multipart SMS which will never get completed due to one reason or another.
This commit is contained in:
@@ -228,7 +228,7 @@ handle_list (MmGdbusModemMessaging *skeleton,
|
||||
gboolean
|
||||
mm_iface_modem_messaging_take_part (MMIfaceModemMessaging *self,
|
||||
MMSmsPart *sms_part,
|
||||
gboolean received)
|
||||
MMSmsState state)
|
||||
{
|
||||
MMSmsList *list = NULL;
|
||||
GError *error = NULL;
|
||||
@@ -238,7 +238,7 @@ mm_iface_modem_messaging_take_part (MMIfaceModemMessaging *self,
|
||||
MM_IFACE_MODEM_MESSAGING_SMS_LIST, &list,
|
||||
NULL);
|
||||
g_assert (list != NULL);
|
||||
added = mm_sms_list_take_part (list, sms_part, received, &error);
|
||||
added = mm_sms_list_take_part (list, sms_part, state, &error);
|
||||
if (!added) {
|
||||
mm_dbg ("Couldn't take part in SMS list: '%s'", error->message);
|
||||
g_error_free (error);
|
||||
|
Reference in New Issue
Block a user