fix selection on chattab

This commit is contained in:
DenioD
2020-05-20 23:53:39 +02:00
parent da65008a88
commit 69799fb812
7 changed files with 383 additions and 397 deletions

View File

@@ -52,11 +52,14 @@ std::map<QString, ChatItem> ChatDataStore::getAllRawChatItems()
std::map<QString, ChatItem> ChatDataStore::getAllNewContactRequests()
{
std::map<QString, ChatItem> filteredItems;
for(auto &c: this->data)
{
if (
(c.second.isOutgoing() == false) &&
(c.second.getType() == "cont")
(c.second.getType() == "Cont") &&
(c.second.getContact() == "")
)
{
@@ -74,7 +77,7 @@ std::map<QString, ChatItem> ChatDataStore::getAllOldContactRequests()
{
if (
(c.second.isOutgoing() == false) &&
(c.second.getType() == "cont") &&
(c.second.getType() == "Cont") &&
(p.getPartnerAddress() == c.second.getRequestZaddr())
)
{