~ken-vandine/history-service/libphonenumber7

« back to all changes in this revision

Viewing changes to Ubuntu/History/historygroupedthreadsmodel.cpp

Request contact information for all known participants on history-daemon initialization, and use this cached information on the models.
Approved by: Tiago Salem Herrmann, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2013 Canonical, Ltd.
 
2
 * Copyright (C) 2013-2015 Canonical, Ltd.
3
3
 *
4
4
 * Authors:
5
5
 *  Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
91
91
    const History::Threads &threads = fetchNextPage();
92
92
    Q_FOREACH(const History::Thread &thread, threads) {
93
93
        processThreadGrouping(thread);
 
94
 
 
95
        // insert the identifiers in the contact map
 
96
        Q_FOREACH(const History::Participant &participant, thread.participants()) {
 
97
            watchContactInfo(thread.accountId(), participant.identifier(), participant.properties());
 
98
        }
94
99
    }
95
100
    notifyDataChanged();
96
101