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 --- src/core/stdmsg/src/cmdlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/cmdlist.cpp b/src/core/stdmsg/src/cmdlist.cpp index 7f8a420cbe..beb669dcf5 100644 --- a/src/core/stdmsg/src/cmdlist.cpp +++ b/src/core/stdmsg/src/cmdlist.cpp @@ -102,7 +102,7 @@ void msgQueue_processack(MCONTACT hContact, int id, BOOL success, LPARAM lParam) p->szMsg = (char*)dbei.pBlob; - db_event_add(hContact, &dbei); + db_event_replace(hContact, &dbei); mir_free(p->szMsg); mir_free(p); -- cgit v1.2.3