diff options
author | George Hazan <george.hazan@gmail.com> | 2025-03-03 18:48:51 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-03-03 18:48:51 +0300 |
commit | 53faac86d3771d4dae2cf7c05f8f459f8395d9ac (patch) | |
tree | ecf8a2d14ed2a7422412c5de2246514f44fab432 /protocols/Steam/src | |
parent | c718ab514e2b6d4bb77d25477c9545758c20ae4b (diff) |
fixes #4904 (Steam: покидать группу при удалении контакта)
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 8cb61b5491..42d0004b64 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -297,7 +297,9 @@ HANDLE CSteamProto::GetAwayMsg(MCONTACT hContact) bool CSteamProto::OnContactDeleted(MCONTACT hContact, uint32_t)
{
// remove only authorized contacts
- if (!getByte(hContact, "Auth"))
+ if (Contact::IsGroupChat(hContact))
+ SvcLeaveChat(hContact, 0);
+ else if (!getByte(hContact, "Auth"))
SendUserRemoveRequest(hContact);
return true;
|