From 56c4e34dd93c3d244b1ed525c5667076437535cb Mon Sep 17 00:00:00 2001 From: Matt Vogt Date: Wed, 7 Aug 2013 09:30:12 +1000 Subject: [PATCH] [libcontacts] Use isOnline flag to select FilterOnline contacts Note that the presence of this flag in the metadata means we should not need to query for these contacts explicitly; we should instead extract the subset of online contacts from the metadata contact set, and insert those directly into the models. --- src/seasidecache.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/seasidecache.cpp b/src/seasidecache.cpp index 2ba4b72..89c3b77 100644 --- a/src/seasidecache.cpp +++ b/src/seasidecache.cpp @@ -259,8 +259,7 @@ QContactFilter nonfavoriteFilter() QContactFilter onlineFilter() { - // Where presence is available - return QContactGlobalPresence::match(QContactPresence::PresenceAvailable); + return QContactStatusFlags::matchFlag(QContactStatusFlags::IsOnline); } QContactFilter aggregateFilter()