sms: always export incomplete multipart SMS messages

This commit is contained in:
Aleksander Morgado
2012-09-07 17:37:55 +02:00
parent e7b094ea3c
commit 0edb58b738
2 changed files with 8 additions and 7 deletions

View File

@@ -278,13 +278,6 @@ take_multipart (MMSmsList *self,
if (!sms)
return FALSE;
/* We do export uncomplete multipart messages, in order to be able to
* request removal of all parts of those multipart SMS that will never
* get completed.
* Only the STATE of the SMS object will be valid in the exported DBus
* interface.*/
mm_sms_export (sms);
self->priv->list = g_list_prepend (self->priv->list, sms);
g_signal_emit (self, signals[SIGNAL_ADDED], 0,
mm_sms_get_path (sms),

View File

@@ -1211,6 +1211,14 @@ mm_sms_multipart_new (MMBaseModem *modem,
if (!mm_sms_multipart_take_part (self, first_part, error))
g_clear_object (&self);
/* We do export uncomplete multipart messages, in order to be able to
* request removal of all parts of those multipart SMS that will never
* get completed.
* Only the STATE of the SMS object will be valid in the exported DBus
* interface.*/
if (self)
mm_sms_export (self);
return self;
}