From 0c66b748a7b6b223d34374994e4d7d207e3d2c71 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 Dec 2022 21:01:26 +0300 Subject: db_event_replace: new helper to eliminate duplicate events --- plugins/Scriver/src/globals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Scriver') diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index aebeaf2f02..8eecb475ed 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -149,7 +149,7 @@ static int ackevent(WPARAM, LPARAM lParam) NotifyEventHooks(g_chatApi.hevPreCreate, 0, (LPARAM)&evt); item->sendBuffer = (char *)dbei.pBlob; - db_event_add(hContact, &dbei); + db_event_replace(hContact, &dbei); if (item->hwndErrorDlg != nullptr) DestroyWindow(item->hwndErrorDlg); -- cgit v1.2.3