summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/chat_manager.cpp9
-rw-r--r--src/mir_app/src/mir_app.def1
-rw-r--r--src/mir_app/src/mir_app64.def1
3 files changed, 11 insertions, 0 deletions
diff --git a/src/mir_app/src/chat_manager.cpp b/src/mir_app/src/chat_manager.cpp
index 495e55c510..35674c113a 100644
--- a/src/mir_app/src/chat_manager.cpp
+++ b/src/mir_app/src/chat_manager.cpp
@@ -140,6 +140,15 @@ void SM_FreeSession(SESSION_INFO *si)
delete si;
}
+MIR_APP_DLL(SESSION_INFO*) Chat_Find(MCONTACT hContact, const char *pszModule)
+{
+ if (pszModule == nullptr)
+ pszModule = Proto_GetBaseAccountName(hContact);
+
+ ptrW contactId(Contact::GetInfo(CNF_UNIQUEID, hContact, pszModule));
+ return Chat_Find(contactId, pszModule);
+}
+
MIR_APP_DLL(SESSION_INFO*) Chat_Find(const wchar_t *pszID, const char *pszModule)
{
if (!pszID || !pszModule)
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def
index 8244257bb2..7600b61835 100644
--- a/src/mir_app/src/mir_app.def
+++ b/src/mir_app/src/mir_app.def
@@ -964,3 +964,4 @@ _Netlib_DownloadFile@20 @1099 NONAME
??0FILE_BLOB@DB@@QAE@PAXPBD1_N@Z @1100 NONAME
?getUserInfo@FILE_BLOB@DB@@QBEPAXXZ @1101 NONAME
?setUserInfo@FILE_BLOB@DB@@QAEXPAX@Z @1102 NONAME
+?Chat_Find@@YGPAUSESSION_INFO@@IPBD@Z @1103 NONAME
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def
index f87aca41a0..78a03b754f 100644
--- a/src/mir_app/src/mir_app64.def
+++ b/src/mir_app/src/mir_app64.def
@@ -964,3 +964,4 @@ Netlib_DownloadFile @1093 NONAME
??0FILE_BLOB@DB@@QEAA@PEAXPEBD1_N@Z @1094 NONAME
?getUserInfo@FILE_BLOB@DB@@QEBAPEAXXZ @1095 NONAME
?setUserInfo@FILE_BLOB@DB@@QEAAXPEAX@Z @1096 NONAME
+?Chat_Find@@YAPEAUSESSION_INFO@@IPEBD@Z @1097 NONAME