summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_menus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-19 15:30:46 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-19 15:30:46 +0300
commit067c76dc4c33c1edf294c50e59bd62822e312f99 (patch)
tree68f5c245b98c337c7194e22c682d9e4c4f01daca /plugins/NewStory/src/history_menus.cpp
parentce18ece5cb16e75938a7277625c1f3d0635eead7 (diff)
we don't need that field anymore
Diffstat (limited to 'plugins/NewStory/src/history_menus.cpp')
-rw-r--r--plugins/NewStory/src/history_menus.cpp10
1 files changed, 5 insertions, 5 deletions
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 {