From 64b53b1c28ffa353ff2f0c0a01405f9afc2b7bf1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 14 Oct 2024 16:43:53 +0300 Subject: common group chat code moved to mir_app --- include/m_chat_int.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/m_chat_int.h b/include/m_chat_int.h index c05b4599cc..99088b2c2f 100644 --- a/include/m_chat_int.h +++ b/include/m_chat_int.h @@ -43,8 +43,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define CHAT_MODULE "Chat" #define CHATFONT_MODULE "ChatFonts" -#define GC_FAKE_EVENT MEVENT(0xBABABEDA) - #define GCW_TABROOM 10 #define GCW_TABPRIVMSG 11 @@ -85,13 +83,13 @@ struct USERINFO : public MZeroedObject, public MNonCopyable wchar_t* pszUID; wchar_t* pszNick; - uint32_t iSignature = GC_FAKE_EVENT; + uint32_t iSignature = 0xDEADBEEF; uint16_t Status; uint16_t ContactStatus; int iStatusEx; bool isValid() const { - return iSignature == GC_FAKE_EVENT; + return iSignature == 0xDEADBEEF; } }; @@ -196,6 +194,7 @@ struct MIR_APP_EXPORT SESSION_INFO : public MZeroedObject, public MNonCopyable } const char* getSoundName(int iEventType) const; + void markRead(bool bForce = false); }; struct GlobalLogSettingsBase -- cgit v1.2.3