This updates the values that are presented in the Type property to use
the values from the documentation ("email", "sms-gsm", "sms-cdma", "mms").
The existing code directly used the values as received in the messages
listing object ("EMAIL", "SMS_GSM", "SMS_CDMA", "MMS").
return;
g_free(msg->type);
- msg->type = g_strdup(value);
+
+ if (strcasecmp(value, "SMS_GSM") == 0)
+ msg->type = g_strdup("sms-gsm");
+ else if (strcasecmp(value, "SMS_CDMA") == 0)
+ msg->type = g_strdup("sms-cdma");
+ else if (strcasecmp(value, "EMAIL") == 0)
+ msg->type = g_strdup("email");
+ else if (strcasecmp(value, "MMS") == 0)
+ msg->type = g_strdup("mms");
+ else
+ msg->type = NULL;
g_dbus_emit_property_changed(conn, msg->path,
MAP_MSG_INTERFACE, "Type");