diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | binding/bluetooth-map-bmessage.c | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -43,7 +43,7 @@ Send a message (if supported) via MAP profile: "status": "UNREAD", "type": "SMS_GSM", "folder": "telecom/msg/inbox", - "recipient": { + "sender": { "fn": "Satoshi Nakamoto", "n": "Satoshi" }, diff --git a/binding/bluetooth-map-bmessage.c b/binding/bluetooth-map-bmessage.c index fd19772..d8e8f63 100644 --- a/binding/bluetooth-map-bmessage.c +++ b/binding/bluetooth-map-bmessage.c @@ -75,14 +75,14 @@ static gboolean __expect(gchar ***msg, gchar *str, json_object *jresp, gboolean #define expect(msg, str, jresp) { if (!__expect(msg, str, jresp, TRUE)) { return FALSE; }; } -static gboolean parse_recipient_vcard(gchar ***msg, json_object *jresp) +static gboolean parse_sender_vcard(gchar ***msg, json_object *jresp) { json_object *jobj; expect(msg, "VERSION:", NULL); jobj = json_object_new_object(); - json_object_object_add(jresp, "recipient", jobj); + json_object_object_add(jresp, "sender", jobj); expect(msg, "FN", jobj); expect(msg, "N", jobj); @@ -109,7 +109,7 @@ static gboolean __bmessage_parse(gchar **msg, json_object *jresp) while (*msg) { if (!vcard && __expect(&msg, "BEGIN:VCARD", NULL, TRUE)) { - vcard = parse_recipient_vcard(&msg, jresp); + vcard = parse_sender_vcard(&msg, jresp); continue; } |