Skip to content

Add M365CalendarMeetNow to the EventActionSource enum #3076

Description

@IoanaDudas

Summary

EventActionSource (in packages/teams-js/src/public/meeting/meeting.ts) is missing a member for the M365 calendar Meet Now start action. It is currently the only M365-calendar source that OWA sends but that isn't a member of the enum.

Background

  • OWA (client-web) M365/Monarch calendar "Meet Now → Start" sends source: "m365_calendar_meet_now" to the Hub SDK meeting.joinMeeting({ joinWebUrl, source }) call.
  • teams-js joinMeeting forwards source as-is (joinMeetingParams.source || EventActionSource.Other), so the string already reaches the Teams host today.
  • The Teams host already maps the literal string "m365_calendar_meet_now"isAdhoc: truecreate_meetup logging.

This was the fix for the Meet Now action logging join_scheduled_meetup instead of create_meetup (internal Teams bug 4507219; OWA PR #248961). The end-to-end fix is already shipped/verified across the other repos.

Requested change

Add the enum member so Teams-side code can reference EventActionSource.M365CalendarMeetNow instead of a raw string literal:

/**
 * Source is the M365 calendar Meet Now start action.
 */
M365CalendarMeetNow = 'm365_calendar_meet_now',

The string value m365_calendar_meet_now is a locked cross-repo contract and must stay byte-for-byte. This is a type-correctness-only follow-up — no behavioral change, not required at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions