refactorng

This commit is contained in:
Blue 2023-11-14 20:23:39 -03:00
parent 00af582287
commit 75554c7451
Signed by: blue
GPG key ID: 9B203B252A63EE38
30 changed files with 515 additions and 627 deletions

View file

@ -193,9 +193,8 @@ Core::UrlStorage::UrlInfo::~UrlInfo() {}
bool Core::UrlStorage::UrlInfo::addMessage(const QString& acc, const QString& jid, const QString& id) {
for (const Shared::MessageInfo& info : messages) {
if (info.account == acc && info.jid == jid && info.messageId == id) {
if (info.account == acc && info.jid == jid && info.messageId == id)
return false;
}
}
messages.emplace_back(acc, jid, id);
return true;