summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-15 11:05:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-15 11:05:09 +0300
commitda3b33dc68aeb3e8ff1eabdc478dd38625b7b2c1 (patch)
tree594548800fb2057c787c0fae3d79fc93496247c4 /plugins/NewStory/src/history_control.cpp
parentd9b60b236e82599aa39ec76f063c1e20dd130678 (diff)
PROTO_INTERFACE::OnEventEdited - new virtual function to send edited messages to server
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r--plugins/NewStory/src/history_control.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index ef997f829a..3fe1f06589 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -153,9 +153,12 @@ struct NewstoryListData : public MZeroedObject
if (pItem->hContact && pItem->hEvent) {
ptrA szUtf(mir_utf8encodeW(pItem->wtext));
- pItem->dbe.cbBlob = mir_strlen(szUtf) + 1;
+ pItem->dbe.cbBlob = (int)mir_strlen(szUtf) + 1;
pItem->dbe.pBlob = (BYTE *)szUtf.get();
db_event_edit(pItem->hContact, pItem->hEvent, &pItem->dbe);
+
+ if (auto *ppro = Proto_GetInstance(pItem->hContact))
+ ppro->OnEventEdited(pItem->hContact, pItem->hEvent);
}
MTextDestroy(pItem->data); pItem->data = 0;