@webex/plugin-meetings 3.12.0-next.12 → 3.12.0-next.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1675,7 +1675,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1675
1675
  // For type LOCUS_ID we need to parse the locus object to get the information
1676
1676
  // about the caller and callee
1677
1677
  // Meeting Added event will be created in `handleLocusEvent`
1678
- if (type !== _constants.DESTINATION_TYPE.LOCUS_ID) {
1678
+ // Only emit MEETING_ADDED if the meeting still exists in the collection.
1679
+ // If fetchMeetingInfo failed and the meeting was destroyed in the catch block,
1680
+ // skip emitting to prevent orphaned meeting references on the consumer side.
1681
+ // @ts-ignore - getMeetingByType types value as object but accepts strings (same as handleLocusEvent)
1682
+ if (type !== _constants.DESTINATION_TYPE.LOCUS_ID && this.getMeetingByType(_constants._ID_, meeting.id)) {
1679
1683
  if (!meeting.sipUri) {
1680
1684
  meeting.setSipUri(destination);
1681
1685
  }