diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-03-03 18:34:26 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-03-03 18:34:26 +0300 |
| commit | 7da217df01b90af80d9c87354f60c8cc1c1014a4 (patch) | |
| tree | 998b6134d1fb33683bfafae03c9f244905d8c1c0 | |
| parent | 84a5aab74db60937368f5d66031a0a2e9a25f48b (diff) | |
Steam: fix for roles in group's chats
| -rw-r--r-- | protocols/Steam/src/steam_chats.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/Steam/src/steam_chats.cpp b/protocols/Steam/src/steam_chats.cpp index 78592f4e18..dab76be00c 100644 --- a/protocols/Steam/src/steam_chats.cpp +++ b/protocols/Steam/src/steam_chats.cpp @@ -51,12 +51,11 @@ void CSteamProto::OnGetMyChats(const CChatRoomGetMyChatRoomGroupsResponse &reply wszTitle = Utf2T(pGroup->chat_group_name); auto *si = Chat_NewSession(GCW_CHATROOM, m_szModuleName, wszId, wszTitle); - if (!si->pStatuses) { + if (pOwner == 0) { + if (!si->pStatuses) { + Chat_AddGroup(si, TranslateT("Owner")); + Chat_AddGroup(si, TranslateT("Participant")); - Chat_AddGroup(si, TranslateT("Owner")); - Chat_AddGroup(si, TranslateT("Participant")); - - if (pOwner == 0) { for (int j = 0; j < pGroup->n_top_members; j++) { uint64_t iSteamId = AccountIdToSteamId(pGroup->top_members[j]); CMStringW wszUserId(FORMAT, L"%lld", iSteamId), wszNick; @@ -84,8 +83,9 @@ void CSteamProto::OnGetMyChats(const CChatRoomGetMyChatRoomGroupsResponse &reply Chat_Event(&gce); } } - else si->pParent = pOwner; + pOwner = si; } + else si->pParent = pOwner; setDword(si->hContact, "ChatId", pChat->chat_id); if (!wszGrpName.IsEmpty()) |
