M module-apps/application-calllog/ApplicationCallLog.cpp => module-apps/application-calllog/ApplicationCallLog.cpp +3 -1
@@ 133,7 133,9 @@ namespace app
DBServiceAPI::GetQuery(this,
db::Interface::Name::Notifications,
std::make_unique<db::query::notifications::Clear>(NotificationsRecord::Key::Calls));
- return true;
+ const auto [succeed, _] = DBServiceAPI::GetQuery(
+ this, db::Interface::Name::Calllog, std::make_unique<db::query::calllog::SetAllRead>());
+ return succeed;
}
} /* namespace app */
M module-apps/application-calllog/windows/CallLogMainWindow.cpp => module-apps/application-calllog/windows/CallLogMainWindow.cpp +2 -1
@@ 164,7 164,8 @@ namespace gui
{
auto notification = dynamic_cast<db::NotificationMessage *>(msg);
if (notification != nullptr) {
- if (notification->interface == db::Interface::Name::Calllog && notification->dataModified()) {
+ if (notification->interface == db::Interface::Name::Calllog &&
+ notification->type == db::Query::Type::Create) {
rebuild();
return true;
}
M module-apps/apps-common/notifications/NotificationsListPresenter.cpp => module-apps/apps-common/notifications/NotificationsListPresenter.cpp +1 -1
@@ 12,7 12,7 @@ namespace
const notifications::NotificationWithContact *notification,
const std::string &text)
{
- if (notification->hasRecord()) {
+ if (notification->hasRecord() && !notification->getRecord().getFormattedName().empty()) {
const auto &record = notification->getRecord();
item->setName(record.getFormattedName());
}