From 7a6bb0b844b0a5c15191977acc79092771bb52b1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 19 Apr 2021 14:36:04 +0300 Subject: Chat_Mute - a function to set group chat mute mode programmatically --- src/mir_app/src/chat_svc.cpp | 5 +++++ src/mir_app/src/mir_app.def | 1 + src/mir_app/src/mir_app64.def | 1 + 3 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp index c3a3f69005..c08fe1cc98 100644 --- a/src/mir_app/src/chat_svc.cpp +++ b/src/mir_app/src/chat_svc.cpp @@ -725,6 +725,11 @@ EXTERN_C MIR_APP_DLL(void) Chat_UpdateOptions() si->pDlg->UpdateOptions(); } +EXTERN_C MIR_APP_DLL(void) Chat_Mute(SESSION_INFO *si, int mode) +{ + db_set_b(si->hContact, "SRMM", "MuteMode", mode); +} + ///////////////////////////////////////////////////////////////////////////////////////// // module initialization diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index c86156eb00..a73b840389 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -777,3 +777,4 @@ _Netlib_GetTlsUnique@8 @831 NONAME ?Upgrade@DB@@YGPAVMDatabaseCommon@@PB_W@Z @865 NONAME ?IsPluginOnWhiteList@@YG_NPBD@Z @866 NONAME ?SetPluginOnWhiteList@@YGXPBD_N@Z @867 NONAME +Chat_Mute @868 diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index ab19f1360a..eac93a9a4c 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -777,3 +777,4 @@ Netlib_GetTlsUnique @831 NONAME ?Upgrade@DB@@YAPEAVMDatabaseCommon@@PEB_W@Z @865 NONAME ?IsPluginOnWhiteList@@YA_NPEBD@Z @866 NONAME ?SetPluginOnWhiteList@@YAXPEBD_N@Z @867 NONAME +Chat_Mute @868 -- cgit v1.2.3