DBManager::GetNotificationList(info.GetOwner(), facade_->GetUid(info),
info.GetChannel());
EventInfo event_info(EventInfo::Delete, info.GetOwner(), info.GetChannel());
+
DoDelete(event_info, noti_list);
facade_->LaunchDefaultViewer(noti_list, NOTIFICATION_OP_DELETE);
} else {
- int ret = DoDelete(info, deletedList);
+ int64_t priv_id = static_pointer_cast<IItemInfoInternal>
+ (deletedList.front()->GetInfo())->GetPrivateId();
+ list<shared_ptr<item::AbstractItem>> noti_list;
+ if (priv_id == 0) {
+ noti_list = DBManager::GetNotificationList(info.GetOwner(),
+ deletedList.front()->GetId(), facade_->GetUid(info));
+ } else {
+ noti_list = deletedList;
+ }
+ int ret = DoDelete(info, noti_list);
if (ret == ERROR_NONE)
facade_->LaunchDefaultViewer(deletedList, NOTIFICATION_OP_DELETE);
}