diff mbox series

[RESEND] obex: report notification status on incoming message

Message ID 20200207050856.9249-1-matt.ranostay@konsulko.com (mailing list archive)
State Accepted, archived
Delegated to: Luiz Von Dentz
Headers show
Series [RESEND] obex: report notification status on incoming message | expand

Commit Message

Matt Ranostay Feb. 7, 2020, 5:08 a.m. UTC
To match doc/obex.txt on incoming message notification the respective
Status field should be set.
---
 obexd/client/map.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Luiz Augusto von Dentz Feb. 11, 2020, 9:01 p.m. UTC | #1
Hi Matt.

On Thu, Feb 6, 2020 at 9:12 PM Matt Ranostay <matt.ranostay@konsulko.com> wrote:
>
> To match doc/obex.txt on incoming message notification the respective
> Status field should be set.
> ---
>  obexd/client/map.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/obexd/client/map.c b/obexd/client/map.c
> index 550c5afb4..23be2d6b2 100644
> --- a/obexd/client/map.c
> +++ b/obexd/client/map.c
> @@ -1914,6 +1914,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");
> --
> 2.20.1

Applied, thanks.
diff mbox series

Patch

diff --git a/obexd/client/map.c b/obexd/client/map.c
index 550c5afb4..23be2d6b2 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
@@ -1914,6 +1914,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");