From 80a6e614bdb1d571d3eec68c3e508b07542bf06e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Jan 2025 12:07:50 +0300 Subject: Steam: no need to maintain auth for group chats --- protocols/Steam/src/steam_menus.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'protocols/Steam/src') 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); -- cgit v1.2.3