@ai-matrx/meet 0.7.1 → 0.7.2

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.
package/dist/react.cjs CHANGED
@@ -1947,6 +1947,15 @@ function createMeetingSession(options) {
1947
1947
  const { manager, repository, store, identity } = options;
1948
1948
  let channel = null;
1949
1949
  let meetingChannel = null;
1950
+ async function readMeeting(meetingId) {
1951
+ try {
1952
+ return await repository.meeting(meetingId);
1953
+ } catch (error) {
1954
+ const slug = store.snapshot().meeting?.slug;
1955
+ if (slug === void 0) throw error;
1956
+ return repository.meetingBySlug(slug);
1957
+ }
1958
+ }
1950
1959
  function requireHostUser(operation) {
1951
1960
  if (identity.userId === null || !isHostRole(effectiveRole(store.snapshot()))) {
1952
1961
  throw new MeetError(
@@ -2027,7 +2036,7 @@ function createMeetingSession(options) {
2027
2036
  onBackfill: async () => {
2028
2037
  const meeting = store.snapshot().meeting;
2029
2038
  if (meeting === null) return;
2030
- const fresh = isGuest(identity) ? await repository.meetingBySlug(meeting.slug) : await repository.meeting(meeting.id);
2039
+ const fresh = isGuest(identity) ? await repository.meetingBySlug(meeting.slug) : await readMeeting(meeting.id);
2031
2040
  store.patch({ meeting: fresh, locked: fresh.locked });
2032
2041
  }
2033
2042
  });
@@ -2122,7 +2131,7 @@ function createMeetingSession(options) {
2122
2131
  // a recovered surface from looking healthy and being wrong.
2123
2132
  onBackfill: async () => {
2124
2133
  const [meeting, transcript, notes, recordings, attendees] = await Promise.all([
2125
- repository.meeting(meetingId),
2134
+ readMeeting(meetingId),
2126
2135
  repository.transcript(meetingId),
2127
2136
  repository.notes(meetingId),
2128
2137
  repository.recordings(meetingId),