From a1284729b31119dc50d95f73e2ffe7fed4a20ac8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Mar 2023 19:24:19 +0300 Subject: chat serialization --- include/m_chat.h | 1 + include/m_chat_int.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/m_chat.h b/include/m_chat.h index 96ddddf297..92e4e6329b 100644 --- a/include/m_chat.h +++ b/include/m_chat.h @@ -134,6 +134,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define GC_TYPNOTIF 0x0040 // enable typing notifications. #define GC_CHANMGR 0x0080 // enable the 'channel settings' button #define GC_DATABASE 0x0100 // all events are backed in the database +#define GC_PERSISTENT 0x0200 // chat structure is stored offline not to retrieve it each time // Error messages #define GC_ERROR 1 // An internal error occurred. diff --git a/include/m_chat_int.h b/include/m_chat_int.h index f5d86317ca..a54d900cdd 100644 --- a/include/m_chat_int.h +++ b/include/m_chat_int.h @@ -98,7 +98,7 @@ struct MIR_APP_EXPORT GCModuleInfoBase : public MZeroedObject, public MNonCopyab bool bBold, bItalics, bUnderline; bool bColor, bBkgColor; - bool bChanMgr, bAckMsg, bDatabase; + bool bChanMgr, bAckMsg, bDatabase, bPersistent; int iMaxText; }; @@ -144,6 +144,7 @@ struct MIR_APP_EXPORT SESSION_INFO : public MZeroedObject, public MNonCopyable bool bHasNicklist; bool bTrimmed; bool bHistoryInit; + bool bIsDirty; char* pszModule; wchar_t* ptszID; -- cgit v1.2.3