update// added new writer method to filesystem to convert old format to new

This commit is contained in:
Strider
2020-05-17 14:57:38 +02:00
parent d4bf7a83c8
commit e6b8f000c9
7 changed files with 76 additions and 32 deletions

View File

@@ -40,10 +40,7 @@ QString ChatDataStore::dump()
j.push_back(c.second.toJson());
}
chats["chatitems"] = j;
std::string dump = chats.dump(4);
qDebug() << dump.c_str();
return "";
return QString::fromStdString(chats.dump());
}
std::map<QString, ChatItem> ChatDataStore::getAllRawChatItems()