diff options
author | George Hazan <george.hazan@gmail.com> | 2025-03-05 12:38:10 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-03-05 12:38:10 +0300 |
commit | c82a4024259c15206548cdad4c96768ea033d425 (patch) | |
tree | 18076da1db0cf512ec7ffb58c26a2a21b94d8ba9 /protocols/Discord/src | |
parent | 533a975813e8f8803a54274f286cd86e742125cd (diff) |
TM_FindStatus also isn't needed in CHAT_MANAGER
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r-- | protocols/Discord/src/guilds.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp index 19210b4cbc..160a152c0d 100644 --- a/protocols/Discord/src/guilds.cpp +++ b/protocols/Discord/src/guilds.cpp @@ -357,12 +357,10 @@ void CDiscordProto::AddGuildUser(CDiscordGuild *pGuild, const CDiscordGuildMembe break;
}
- auto *pStatus = g_chatApi.TM_FindStatus(pGuild->pParentSi->pStatuses, pUser.wszRole);
-
wchar_t wszUserId[100];
_i64tow_s(pUser.userId, wszUserId, _countof(wszUserId), 10);
- auto *pu = g_chatApi.UM_AddUser(pGuild->pParentSi, wszUserId, pUser.wszNick, (pStatus) ? pStatus->iStatus : 0);
+ auto *pu = g_chatApi.UM_AddUser(pGuild->pParentSi, wszUserId, pUser.wszNick, 0);
pu->iStatusEx = flags;
if (pUser.userId == m_ownId)
pGuild->pParentSi->pMe = pu;
|