#include <notification-ex/button_item.h>
#include <notification-ex/ex_util.h>
#include <notification-ex/ievent_info_internal.h>
+#include <notification-ex/event_info_internal.h>
#include <notification-ex/iitem_info_internal.h>
#include <notification-ex/shared_file.h>
#include <notification-ex/group_item.h>
list<shared_ptr<item::AbstractItem>> noti_list =
DBManager::GetNotificationList(info.GetOwner(), facade_->GetUid(info),
info.GetChannel());
- for (auto& i : noti_list)
- DoDelete(info, i);
- facade_->LaunchDefaultViewer(noti_list, NOTIFICATION_OP_DELETE_ALL);
+ for (auto& i : noti_list) {
+ EventInfo event_info(EventInfo::Delete, info.GetOwner(), info.GetChannel());
+ DoDelete(event_info, i);
+ }
+ facade_->LaunchDefaultViewer(noti_list, NOTIFICATION_OP_DELETE);
} else {
int ret = DoDelete(info, deletedItem);
if (ret == ERROR_NONE)