diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-31 19:52:05 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-31 19:52:05 +0000 |
commit | 4df1f9301740611b12beff24d14e5476a1622848 (patch) | |
tree | 5539727e34bf66ab5aba91c2cfacc2f2b6cc48c8 /plugins/Db3x_mmap/src | |
parent | 5ccc401594b2c465352b03df6b2868fffbf3ffc2 (diff) |
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
Diffstat (limited to 'plugins/Db3x_mmap/src')
-rw-r--r-- | plugins/Db3x_mmap/src/dbevents.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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;
|