From da3b33dc68aeb3e8ff1eabdc478dd38625b7b2c1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Jun 2020 11:05:09 +0300 Subject: PROTO_INTERFACE::OnEventEdited - new virtual function to send edited messages to server --- plugins/NewStory/src/history_control.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/NewStory/src/history_control.cpp') 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; -- cgit v1.2.3