From 067c76dc4c33c1edf294c50e59bd62822e312f99 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jul 2024 15:30:46 +0300 Subject: we don't need that field anymore --- plugins/NewStory/src/history_menus.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/NewStory/src/history_menus.cpp') diff --git a/plugins/NewStory/src/history_menus.cpp b/plugins/NewStory/src/history_menus.cpp index 93230a07e4..d8db517b34 100644 --- a/plugins/NewStory/src/history_menus.cpp +++ b/plugins/NewStory/src/history_menus.cpp @@ -35,8 +35,8 @@ HMENU NSMenu_Build(NewstoryListData *data, ItemData *item) { bool bNotProtected = true; if (item != nullptr) - if (auto *szProto = Proto_GetBaseAccountName(item->hContact)) - bNotProtected = db_get_b(item->hContact, szProto, "Protected") == 0; + if (auto *szProto = Proto_GetBaseAccountName(item->dbe.hContact)) + bNotProtected = db_get_b(item->dbe.hContact, szProto, "Protected") == 0; Menu_ShowItem(hmiCopy, bNotProtected); Menu_ShowItem(hmiCopyText, bNotProtected); @@ -65,11 +65,11 @@ HMENU NSMenu_Build(NewstoryListData *data, ItemData *item) bShowEventActions = item->dbe.getEvent() != 0; DB::EventInfo dbei(item->dbe.getEvent()); - NotifyEventHooks(hEventPreBuildMenu, item->hContact, (LPARAM)&dbei); + NotifyEventHooks(hEventPreBuildMenu, item->dbe.hContact, (LPARAM)&dbei); if (data->pMsgDlg) { - INT_PTR caps = CallProtoService(Proto_GetBaseAccountName(item->hContact), PS_GETCAPS, PFLAGNUM_4, 0); - Menu_ShowItem(hmiReply, (caps & PF4_REPLY) != 0 && mir_strlen(dbei.szId) > 0 && !Contact::IsReadonly(item->hContact)); + INT_PTR caps = CallProtoService(Proto_GetBaseAccountName(item->dbe.hContact), PS_GETCAPS, PFLAGNUM_4, 0); + Menu_ShowItem(hmiReply, (caps & PF4_REPLY) != 0 && mir_strlen(dbei.szId) > 0 && !Contact::IsReadonly(item->dbe.hContact)); } } else { -- cgit v1.2.3