From 86de58620486b3831893862086b95d38387437be Mon Sep 17 00:00:00 2001 From: Christian Fetzer Date: Fri, 11 Jan 2013 16:55:56 +0100 Subject: [PATCH] obexd: Change behavior of parse_filter_read Calls to ListMessages with filter 'Read' set to true should request the MSE to send read messages only. The old code requests the MSE to send unread messages only. This behavior is not matching the other filters. --- obexd/client/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obexd/client/map.c b/obexd/client/map.c index 0a4e7ac53..29efd51b9 100644 --- a/obexd/client/map.c +++ b/obexd/client/map.c @@ -1179,9 +1179,9 @@ static GObexApparam *parse_filter_read(GObexApparam *apparam, dbus_message_iter_get_basic(iter, &dbus_status); if (dbus_status) - status = FILTER_READ_STATUS_ONLY_UNREAD; - else status = FILTER_READ_STATUS_ONLY_READ; + else + status = FILTER_READ_STATUS_ONLY_UNREAD; return g_obex_apparam_set_uint8(apparam, MAP_AP_FILTERREADSTATUS, status); -- 2.47.3