Commit b7e5fcb8 authored by Chris T's avatar Chris T

Fix sending message date/time

This fixes a couple of issues: The date was never set for a sent message and the wrong date was being sent to be put into a string.
parent 4df152ef
......@@ -1030,6 +1030,8 @@ static DBusMessage *send_message(DBusConnection *conn,
msg->sr.dr = service->use_delivery_reports;
time(&msg->sr.date);
if (send_message_get_args(dbus_msg, msg) == FALSE) {
mms_debug("Invalid arguments");
......@@ -1850,7 +1852,7 @@ static void append_rc_msg_properties(DBusMessageIter *dict,
static void append_sr_msg_properties(DBusMessageIter *dict,
struct mms_message *msg)
{
const char *date = time_to_str(&msg->rc.date);
const char *date = time_to_str(&msg->sr.date);
const char *status = mms_message_status_get_string(msg->sr.status);
mms_dbus_dict_append_basic(dict, "Status",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment