Swarm: modify client-qt/src/conversationlistmodelbase.cpp and filter
- ConversationListModelBase::dataForItem
Problem: in this function we do a getContact to fill infos on conversation. We don't need it. Ideally, instead of:
case Role::BestName:
return QVariant(contactModel->bestNameForContact(peerUri));
We should have:
case Role::Title:
return QVariant(item.title());
And logic for the title must move into LRC. Same for other functions using contactModel there
- ConversationListProxyModel::filterAcceptsRow
Problem: auto typeFilter = static_cast<profile::Type>(itemProfileType) == currentTypeFilter_;
We have two tabs. Swarm already have logic for this. it should be filtered via conversationInfo::isRequest