From 38d90f4bf356f245123c503d596a15d9484089ad Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 9 Jul 2014 20:44:12 +0000 Subject: 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 --- src/core/stdmsg/src/msgdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core') 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) }; -- cgit v1.2.3