diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-01-13 12:07:50 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-01-13 12:07:50 +0300 |
| commit | 80a6e614bdb1d571d3eec68c3e508b07542bf06e (patch) | |
| tree | 9c1375ee2d8f48d77a52b1f2aa9a88c7c732cc9e /protocols/Steam/src/steam_menus.cpp | |
| parent | f6b395f209b5f460753cdf956daab9ac98218e17 (diff) | |
Steam: no need to maintain auth for group chats
Diffstat (limited to 'protocols/Steam/src/steam_menus.cpp')
| -rw-r--r-- | protocols/Steam/src/steam_menus.cpp | 8 |
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);
|
