Skip to content

Commit

Permalink
[libcommhistory] Factorize code in SingleContactEventModel::getEvents().
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaliste authored and blammit committed Nov 30, 2020
1 parent f034d37 commit eca57e9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/singlecontacteventmodel.cpp
Expand Up @@ -122,17 +122,7 @@ bool SingleContactEventModel::getEvents(int contactId)

bool SingleContactEventModel::getEvents(const QContactId &contactId)
{
Q_D(SingleContactEventModel);

beginResetModel();
d->clearEvents();
d->isReady = false;
endResetModel();

d->m_contactId = SeasideCache::internalId(contactId);
d->m_recipient = Recipient();
d->m_fetcher.add(d->m_contactId);
return true;
return getEvents(SeasideCache::internalId(contactId));
}

bool SingleContactEventModel::getEvents(const Recipient &recipient)
Expand Down

0 comments on commit eca57e9

Please sign in to comment.