diff options
author | George Hazan <ghazan@miranda.im> | 2018-10-13 23:47:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-10-13 23:47:14 +0300 |
commit | 27a552b8bf0f42af225e07b009d5b3e9c633e3fe (patch) | |
tree | 2a2b3204955b92e9cf87aed76a7033067a050ecd /include/m_chat_int.h | |
parent | 31af9f2c6205e0517185f71c6c66f76d6425e2a5 (diff) |
group chats:
- GC_SHAREDUSERS removed;
- SESSION_INFO::pParent used instead to collect data about shared user info
- fix for SESSION_INFO::pMe calculation
- Discord chats now go offline when proto goes offline
Diffstat (limited to 'include/m_chat_int.h')
-rw-r--r-- | include/m_chat_int.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/m_chat_int.h b/include/m_chat_int.h index 154edc854e..472d08cf8c 100644 --- a/include/m_chat_int.h +++ b/include/m_chat_int.h @@ -103,11 +103,9 @@ struct MIR_APP_EXPORT GCModuleInfoBase : public MZeroedObject, public MNonCopyab bool bBold, bItalics, bUnderline;
bool bColor, bBkgColor;
- bool bChanMgr, bAckMsg, bSharedUsers;
+ bool bChanMgr, bAckMsg;
int iMaxText;
-
- OBJLIST<USERINFO> arUsers; // for shared list of users
};
struct COMMANDINFO
@@ -180,15 +178,18 @@ struct MIR_APP_EXPORT GCSessionInfoBase : public MZeroedObject, public MNonCopya USERINFO *pMe;
STATUSINFO *pStatuses;
MODULEINFO *pMI;
+ GCSessionInfoBase *pParent;
OBJLIST<USERINFO> arUsers;
wchar_t pszLogFileName[MAX_PATH];
+ __forceinline USERINFO* getMe() const
+ { return (pParent != nullptr) ? pParent->pMe : pMe;
+ }
+
__forceinline OBJLIST<USERINFO>& getUserList()
- {
- GCModuleInfoBase *mi = (GCModuleInfoBase*)pMI;
- return (mi->bSharedUsers) ? mi->arUsers : arUsers;
+ { return (pParent != nullptr) ? pParent->arUsers : arUsers;
}
};
|