diff options
author | George Hazan <ghazan@miranda.im> | 2022-11-14 20:04:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-11-14 20:04:02 +0300 |
commit | 2d74ff3a09c40efda6ad6e9c6b569820776a54f1 (patch) | |
tree | a30fa0bca0c7dec52fa5b554b7eccd0993d254fa /src/mir_app | |
parent | e097a96ae55208292e1800c75b6a1f7766e38964 (diff) |
basic set for storing group chat messages in a database + reusing log settings like show 10 recent messages
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/chat.h | 2 | ||||
-rw-r--r-- | src/mir_app/src/chat_svc.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mir_app/src/chat.h b/src/mir_app/src/chat.h index ed4e28aa22..cab71e9849 100644 --- a/src/mir_app/src/chat.h +++ b/src/mir_app/src/chat.h @@ -81,7 +81,7 @@ SESSION_INFO* SM_FindSession(const wchar_t *pszID, const char *pszModule); SESSION_INFO* SM_FindSessionByIndex(const char *pszModule, int iItem);
STATUSINFO* TM_AddStatus(STATUSINFO **ppStatusList, const wchar_t *pszStatus, int *iCount);
-uint16_t TM_StringToWord(STATUSINFO *pStatusList, const wchar_t *pszStatus);
+uint16_t TM_StringToWord(STATUSINFO *pStatusList, const wchar_t *pszStatus);
BOOL UM_RemoveAll(SESSION_INFO *si);
BOOL UM_SetStatusEx(SESSION_INFO *si, const wchar_t* pszText, int flags);
diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp index e1c3ad4596..0043df7ae6 100644 --- a/src/mir_app/src/chat_svc.cpp +++ b/src/mir_app/src/chat_svc.cpp @@ -190,6 +190,7 @@ MIR_APP_DLL(int) Chat_Register(const GCREGISTER *gcr) mi->bBkgColor = (gcr->dwFlags & GC_BKGCOLOR) != 0;
mi->bAckMsg = (gcr->dwFlags & GC_ACKMSG) != 0;
mi->bChanMgr = (gcr->dwFlags & GC_CHANMGR) != 0;
+ mi->bDatabase = (gcr->dwFlags & GC_DATABASE) != 0;
mi->iMaxText = gcr->iMaxText;
mi->pszHeader = g_chatApi.Log_CreateRtfHeader();
|