aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-sms.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-sms.c b/src/mm-sms.c
index 4a647b46..1de83af0 100644
--- a/src/mm-sms.c
+++ b/src/mm-sms.c
@@ -1210,11 +1210,12 @@ assemble_sms (MMSms *self,
}
/* When the user creates the SMS, it will have either 'text' or 'data',
- * not both */
+ * not both. Also status report PDUs may not have neither text nor data. */
parttext = mm_sms_part_get_text (sorted_parts[idx]);
partdata = mm_sms_part_get_data (sorted_parts[idx]);
- if (!parttext && !partdata) {
+ if (!parttext && !partdata &&
+ mm_sms_part_get_pdu_type (sorted_parts[idx]) != MM_SMS_PDU_TYPE_STATUS_REPORT) {
g_set_error (error,
MM_CORE_ERROR,
MM_CORE_ERROR_FAILED,