From 4df1f9301740611b12beff24d14e5476a1622848 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 31 Jul 2014 19:52:05 +0000 Subject: default sub should be changed only on the incoming events git-svn-id: http://svn.miranda-ng.org/main/trunk@10009 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/dbevents.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Db3x_mmap/src/dbevents.cpp b/plugins/Db3x_mmap/src/dbevents.cpp index 0de122623d..397d1aaf3e 100644 --- a/plugins/Db3x_mmap/src/dbevents.cpp +++ b/plugins/Db3x_mmap/src/dbevents.cpp @@ -56,7 +56,8 @@ STDMETHODIMP_(HANDLE) CDb3Mmap::AddEvent(MCONTACT contactID, DBEVENTINFO *dbei) if (cc->IsSub()) { ccSub = cc; // set default sub to the event's source - db_mc_setDefault(cc->parentID, contactID, false); + if (!(dbei->flags & DBEF_SENT)) + db_mc_setDefault(cc->parentID, contactID, false); contactID = cc->parentID; // and add an event to a metahistory if (db_mc_isEnabled()) contactNotifyID = contactID; -- cgit v1.2.3