diff options
author | George Hazan <ghazan@miranda.im> | 2021-04-19 14:36:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-04-19 14:36:04 +0300 |
commit | 7a6bb0b844b0a5c15191977acc79092771bb52b1 (patch) | |
tree | bb1334c59899baea00b706724552cd63d080263c /src | |
parent | 99f8fd05b99fbe8df51ba05ee859a419962a535e (diff) |
Chat_Mute - a function to set group chat mute mode programmatically
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/chat_svc.cpp | 5 | ||||
-rw-r--r-- | src/mir_app/src/mir_app.def | 1 | ||||
-rw-r--r-- | src/mir_app/src/mir_app64.def | 1 |
3 files changed, 7 insertions, 0 deletions
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
|