summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbevents.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-13 08:39:31 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-13 08:39:31 +0000
commit78ae2b870dd88686099ab4ab072fac21487b9702 (patch)
treeaed454ece0981564d2524e22e5577784433aab99 /plugins/Db3x_mmap/src/dbevents.cpp
parent5943db664c4d379a83866bd4ff4b16df46d3732d (diff)
db3x_mmap: fix for metacontacts in [14915]
git-svn-id: http://svn.miranda-ng.org/main/trunk@14935 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbevents.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbevents.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/Db3x_mmap/src/dbevents.cpp b/plugins/Db3x_mmap/src/dbevents.cpp
index c42a0962ab..d118f6d3c2 100644
--- a/plugins/Db3x_mmap/src/dbevents.cpp
+++ b/plugins/Db3x_mmap/src/dbevents.cpp
@@ -35,6 +35,10 @@ STDMETHODIMP_(MEVENT) CDb3Mmap::AddEvent(MCONTACT contactID, DBEVENTINFO *dbei)
if (dbei == NULL || dbei->cbSize != sizeof(DBEVENTINFO)) return 0;
if (dbei->timestamp == 0) return 0;
+ DBEvent dbe;
+ dbe.signature = DBEVENT_SIGNATURE;
+ dbe.contactID = contactID; // store native or subcontact's id
+
MCONTACT contactNotifyID = contactID;
DBCachedContact *ccSub = NULL;
if (contactID != 0) {
@@ -56,9 +60,6 @@ STDMETHODIMP_(MEVENT) CDb3Mmap::AddEvent(MCONTACT contactID, DBEVENTINFO *dbei)
if (NotifyEventHooks(hEventFilterAddedEvent, contactNotifyID, (LPARAM)dbei))
return NULL;
- DBEvent dbe;
- dbe.signature = DBEVENT_SIGNATURE;
- dbe.contactID = contactID; // store native or subcontact's id
dbe.timestamp = dbei->timestamp;
dbe.flags = dbei->flags;
dbe.wEventType = dbei->eventType;