stream-chat-react 12.4.0 → 12.4.1

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.
@@ -33192,9 +33192,12 @@ var getChannel = async ({
33192
33192
  if (queryPromise) {
33193
33193
  await queryPromise;
33194
33194
  } else {
33195
- WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid] = theChannel.watch(options);
33196
- await WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid];
33197
- delete WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid];
33195
+ try {
33196
+ WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid] = theChannel.watch(options);
33197
+ await WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid];
33198
+ } finally {
33199
+ delete WATCH_QUERY_IN_PROGRESS_FOR_CHANNEL[originalCid];
33200
+ }
33198
33201
  }
33199
33202
  return theChannel;
33200
33203
  };