From da1b2a070c113222cbbad31b18ab704c7d1301b2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Nov 2018 15:23:19 +0300 Subject: Chat_AddGroup - simplified prototype --- src/mir_app/src/chat_svc.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp index 7e76a5f41f..b5e1522cbd 100644 --- a/src/mir_app/src/chat_svc.cpp +++ b/src/mir_app/src/chat_svc.cpp @@ -575,16 +575,14 @@ EXTERN_C MIR_APP_DLL(int) Chat_Event(GCEVENT *gce) ///////////////////////////////////////////////////////////////////////////////////////// // chat control functions -MIR_APP_DLL(int) Chat_AddGroup(const char *szModule, const wchar_t *wszId, const wchar_t *wszText) +MIR_APP_DLL(int) Chat_AddGroup(SESSION_INFO *si, const wchar_t *wszText) { if (wszText == nullptr) return GC_EVENT_ERROR; - - mir_cslock lck(csChat); - SESSION_INFO *si = SM_FindSession(wszId, szModule); if (si == nullptr) return 0; + mir_cslock lck(csChat); STATUSINFO *ti = TM_AddStatus(&si->pStatuses, wszText, &si->iStatusCount); if (ti) si->iStatusCount++; -- cgit v1.2.3