obex: report notification status on incoming message
authorMatt Ranostay <matt.ranostay@konsulko.com>
Fri, 7 Feb 2020 05:08:56 +0000 (21:08 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:48 +0000 (14:30 +0530)
To match doc/obex.txt on incoming message notification the respective
Status field should be set.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
obexd/client/map.c

index 9cf3dac..5f0ea09 100755 (executable)
@@ -1913,6 +1913,7 @@ static void map_handle_notification(struct map_event *event, void *user_data)
        switch (event->type) {
        case MAP_ET_NEW_MESSAGE:
                map_handle_new_message(map, event);
+               map_handle_status_changed(map, event, "notification");
                break;
        case MAP_ET_DELIVERY_SUCCESS:
                map_handle_status_changed(map, event, "delivery-success");