The Zoom SDK's getRunningContext method doesn't work correctly in some cases

Short description
In some cases, the getRunningContext method returns ‘inMainClient’ instead of ‘inMeeting’. The Zoom SDK retains the previous context when I switch windows.

Reproduction steps

  1. Open the application in the Applications window.
  2. getRunningContext returns the context ‘inMainClient’ – this is expected behavior.
  3. Next, enable the Auto-open in meetings option.
  4. Start a new meeting.
  5. The application opens automatically with the ‘inMainClient’ context instead of the ‘inMeeting’ context.

Looks like Zoom SDK retains the previous context.

OS: Windows 11 (I believe this issue also occurs on Mac)
Zoom Client Version: 6.1.11 (45504)
Zoom SDK Version: 0.16.17