Skip to content

STREAM-1034: jwt support for live-monitoring#971

Merged
AidanWZ merged 12 commits intodevelopfrom
STREAM-1034
Jan 21, 2026
Merged

STREAM-1034: jwt support for live-monitoring#971
AidanWZ merged 12 commits intodevelopfrom
STREAM-1034

Conversation

@AidanWZ
Copy link
Copy Markdown
Collaborator

@AidanWZ AidanWZ commented Jan 20, 2026

MERGE CHECKLIST

  • Tests have been updated, added, or removed and the testing matrix has passed.
  • Documentation has been updated or added.
  • Changelog has been updated with ticket or issue number, link to the ticket, and a description of the changes.
  • Branch has been built in the BitBucket wrapper repository.
  • Pull request title is formatted as [STREAM-<ticket number>] - <description of changes> or [<issue number>] - <description of changes>.
  • Release pull requests include someone from the PureScale team for approval.
    • Build release branch in wrapper repository and make sure it is tagged with next on npm.

@AidanWZ AidanWZ self-assigned this Jan 20, 2026
@AidanWZ AidanWZ added the feature Adds a feature or new functionality. label Jan 20, 2026
}

// Auto-accept if current user is the target (fromUserId matches current user)
if (pendingSession.fromUserId === this.sdk._personDetails?.id) {
Copy link
Copy Markdown
Collaborator Author

@AidanWZ AidanWZ Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Media-controller: LiveMonitorService.startMonitor() calls conferenceService.addParticipantForLiveMonitor() and passes request.getTargetUserId() as the targetUserId parameter for both the target and observer participants.
  • Media-controller: ConferenceService.addParticipantForLiveMonitor() receives this targetUserId and passes it as the initiatorUserId parameter to the addParticipant() method:
  • Media-controller: ConferenceService.addParticipant() receives the initiatorUserId and passes it to sendProposeStanza().
  • ConferenceService.sendProposeStanza() creates the Propose object and passes initiatorUserId which becomes the fromUserId field in the pending session

@AidanWZ AidanWZ requested a review from RobinsonWM January 20, 2026 22:09

mockSdk._config.autoAcceptPendingLiveScreenMonitoringRequests = false;
await handler.handlePropose({} as any);
const pendingSession = { fromUserId: 'user123' } as any;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Unexpected any. Specify a different type.

Suggested change
const pendingSession = { fromUserId: 'user123' } as any;
const pendingSession = { fromUserId: 'user123' } as unknown;

const superSpy = jest.spyOn(BaseSessionHandler.prototype, 'handlePropose').mockResolvedValue(null);

mockSdk._config.autoAcceptPendingLiveScreenMonitoringRequests = false;
const pendingSession = { fromUserId: 'different-user' } as any;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Unexpected any. Specify a different type.

Suggested change
const pendingSession = { fromUserId: 'different-user' } as any;
const pendingSession = { fromUserId: 'different-user' } as unknown;

@AidanWZ AidanWZ merged commit cdc72ad into develop Jan 21, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Adds a feature or new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants