diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-09 20:44:12 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-09 20:44:12 +0000 |
commit | 38d90f4bf356f245123c503d596a15d9484089ad (patch) | |
tree | 4cfc4d32080811c139dd90142c9d01654d8ea7a6 /src/core/stdmsg | |
parent | 52821496137aeb7ddedd31143cf0c4eed5e7ba1e (diff) |
StdMsg: the outgoing messages are written into the meta history with wrong contact id
git-svn-id: http://svn.miranda-ng.org/main/trunk@9750 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 7032a1478c..636a8b6d98 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -119,6 +119,9 @@ HANDLE SendMessageDirect(const TCHAR *szMsg, MCONTACT hContact, char *szProto) if (sendBuffer == NULL)
return NULL;
+ if (db_mc_isMeta(hContact))
+ hContact = db_mc_getSrmmSub(hContact);
+
int sendId = CallContactService(hContact, PSS_MESSAGE, flags, (LPARAM)sendBuffer);
DBEVENTINFO dbei = { sizeof(dbei) };
|