mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 20:44:44 -04:00
[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:
committed by
Bartosz Cichocki
parent
eca248c688
commit
fb32765132
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user