Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
[libcontacts] Use isOnline flag to select FilterOnline contacts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthewvogt committed Aug 6, 2013
1 parent 947093d commit 56c4e34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/seasidecache.cpp
Expand Up @@ -259,8 +259,7 @@ QContactFilter nonfavoriteFilter()

QContactFilter onlineFilter()
{
// Where presence is available
return QContactGlobalPresence::match(QContactPresence::PresenceAvailable);
return QContactStatusFlags::matchFlag(QContactStatusFlags::IsOnline);
}

QContactFilter aggregateFilter()
Expand Down

0 comments on commit 56c4e34

Please sign in to comment.