[MOS-578] Fix incorrect logic with SMS notifications

Fixed case, when there's only one thread unread and
there's no info about the thread, only a generic message

Tests are deleted because the fix would require rewritting ALL
of those tests - those will be written with new implementation
of notification table
This commit is contained in:
Bartosz Szostak
2023-01-26 14:55:59 +01:00
committed by Bartosz Cichocki
parent eca248c688
commit fb32765132
10 changed files with 63 additions and 433 deletions

View File

@@ -150,10 +150,10 @@ void SMSThreadModel::markCurrentThreadAsRead()
db::Interface::Name::SMSThread,
std::make_unique<db::query::MarkAsRead>(smsThreadID, db::query::MarkAsRead::Read::True));
DBServiceAPI::GetQuery(
application,
db::Interface::Name::Notifications,
std::make_unique<db::query::notifications::Decrement>(NotificationsRecord::Key::Sms, unreadMsgCount));
DBServiceAPI::GetQuery(application,
db::Interface::Name::Notifications,
std::make_unique<db::query::notifications::Decrement>(
NotificationsRecord::Key::Sms, numberID, unreadMsgCount));
}
}
}