diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-05-13 19:53:08 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-05-13 19:54:03 -0700 |
commit | 3639b502949565aa203559c908cd4ad878a180ae (patch) | |
tree | 8212711b169e91d4ea47b5cccd89df953abcc3d5 /binding/bluetooth-map-bmessage.c | |
parent | 179f93118b7ecfc50c85c3b8714419ebb3fa2325 (diff) |
binding: bluetooth-map: change recipient entry to senderhalibut_7.99.1halibut/7.99.17.99.1
In notification event it is the sender's vCard that is displayed
change the naming to reflect that.
Bug-AGL: SPEC-2351 SPEC-2392
Change-Id: Id7c7addee7c72a0b6dcfe1a0f50a6b9843d5797a
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/bluetooth-map-bmessage.c')
-rw-r--r-- | binding/bluetooth-map-bmessage.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |