summaryrefslogtreecommitdiff
path: root/protocols/Steam/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-13 12:07:50 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-13 12:07:50 +0300
commit80a6e614bdb1d571d3eec68c3e508b07542bf06e (patch)
tree9c1375ee2d8f48d77a52b1f2aa9a88c7c732cc9e /protocols/Steam/src
parentf6b395f209b5f460753cdf956daab9ac98218e17 (diff)
Steam: no need to maintain auth for group chats
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r--protocols/Steam/src/steam_menus.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_menus.cpp b/protocols/Steam/src/steam_menus.cpp
index 9260528aa9..d82d3e46cf 100644
--- a/protocols/Steam/src/steam_menus.cpp
+++ b/protocols/Steam/src/steam_menus.cpp
@@ -59,9 +59,11 @@ int CSteamProto::OnPrebuildContactMenu(WPARAM hContact, LPARAM)
bool ctrlPressed = (GetKeyState(VK_CONTROL) & 0x8000) != 0;
- bool authNeeded = getBool(hContact, "Auth", 0);
- Menu_ShowItem(GetMenuItem(PROTO_MENU_REQ_AUTH), authNeeded || ctrlPressed);
- Menu_ShowItem(GetMenuItem(PROTO_MENU_REVOKE_AUTH), !authNeeded || ctrlPressed);
+ if (!Contact::IsGroupChat(hContact)) {
+ bool authNeeded = getBool(hContact, "Auth", 0);
+ Menu_ShowItem(GetMenuItem(PROTO_MENU_REQ_AUTH), authNeeded || ctrlPressed);
+ Menu_ShowItem(GetMenuItem(PROTO_MENU_REVOKE_AUTH), !authNeeded || ctrlPressed);
+ }
bool isBlocked = getBool(hContact, "Block", 0);
Menu_ShowItem(contactMenuItems[CMI_BLOCK], !isBlocked || ctrlPressed);