Skip to content

[Fixed] Teams: share keys no longer wait for the share picker on every key - #135

Merged
nicotyze merged 1 commit into
Renater:mainfrom
Moustique82:fix/teams-share-braces
Oct 2, 2026
Merged

nicotyze merged 1 commit into
Renater:mainfrom
Moustique82:fix/teams-share-braces

Conversation

@Moustique82

Copy link
Copy Markdown
Contributor

Problem

In teams.js, if (key == "s" || key == "q") had no braces. Only the click on the share button was conditional. The 10 s wait for the share picker ran on every key (1–5, c…) and ended in an unhandled rejection. It could also click a share picker opened for another reason.

Fix

Braces around the share block. The picker wait is wrapped in try/catch: when stopping a share (q), no picker is shown and that is not an error.

Tests (Teams meeting, Cisco Room Kit)

  • Keys 1 to 5: each does its action only ✅
  • Content share from the Room Kit (s via VIDEO_SLIDES_START): content visible in the Teams client ✅
  • Stop sharing (q): content removed ✅; second start/stop cycle ✅
  • Key 1 during a share: mic toggles, share continues ✅

…y key

The `if (key == "s" || key == "q")` had no braces, so the 10 s wait for
the share picker ran on every key and ended in an unhandled rejection.
Add the braces, and catch the timeout when no picker is shown (stopping
an ongoing share).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KG9a9jCghzpRda7TtbkRmV
@nicotyze
nicotyze merged commit 20f5542 into Renater:main Oct 2, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants