@amityco/ts-sdk-react-native 7.27.1-65962e20.0 → 7.27.1-d6964077.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createChannel.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/api/createChannel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createChannel.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/api/createChannel.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa;;;;;;yIAmDzB,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -12335,6 +12335,16 @@ const createChannel = async (bundle) => {
|
|
|
12335
12335
|
/* c8 ignore next */
|
|
12336
12336
|
isPublic: (bundle === null || bundle === void 0 ? void 0 : bundle.type) === 'community' ? isPublic : undefined }));
|
|
12337
12337
|
}
|
|
12338
|
+
// Fire the event locally, the same way createCommunity and createPost do.
|
|
12339
|
+
// Without it a running getChannels collection never inserts the new channel:
|
|
12340
|
+
// its query stream controller inserts an id only on OnCreate / OnJoin /
|
|
12341
|
+
// OnResolveChannel / OnUnarchived, and the first sent message arrives as an
|
|
12342
|
+
// OnUpdate, which only re-notifies. Reusing the MQTT event name means the
|
|
12343
|
+
// already-wired onChannelCreated -> OnCreate path does the insert, so the
|
|
12344
|
+
// list updates without a re-query. onChannelCreated re-runs
|
|
12345
|
+
// prepareChannelPayload + ingestInCache itself, so this is idempotent with
|
|
12346
|
+
// the ingest below.
|
|
12347
|
+
fireEvent('channel.created', payload.data);
|
|
12338
12348
|
const data = await prepareChannelPayload(payload.data);
|
|
12339
12349
|
const cachedAt = client.cache && Date.now();
|
|
12340
12350
|
if (client.cache)
|
package/dist/index.esm.js
CHANGED
|
@@ -12316,6 +12316,16 @@ const createChannel = async (bundle) => {
|
|
|
12316
12316
|
/* c8 ignore next */
|
|
12317
12317
|
isPublic: (bundle === null || bundle === void 0 ? void 0 : bundle.type) === 'community' ? isPublic : undefined }));
|
|
12318
12318
|
}
|
|
12319
|
+
// Fire the event locally, the same way createCommunity and createPost do.
|
|
12320
|
+
// Without it a running getChannels collection never inserts the new channel:
|
|
12321
|
+
// its query stream controller inserts an id only on OnCreate / OnJoin /
|
|
12322
|
+
// OnResolveChannel / OnUnarchived, and the first sent message arrives as an
|
|
12323
|
+
// OnUpdate, which only re-notifies. Reusing the MQTT event name means the
|
|
12324
|
+
// already-wired onChannelCreated -> OnCreate path does the insert, so the
|
|
12325
|
+
// list updates without a re-query. onChannelCreated re-runs
|
|
12326
|
+
// prepareChannelPayload + ingestInCache itself, so this is idempotent with
|
|
12327
|
+
// the ingest below.
|
|
12328
|
+
fireEvent('channel.created', payload.data);
|
|
12319
12329
|
const data = await prepareChannelPayload(payload.data);
|
|
12320
12330
|
const cachedAt = client.cache && Date.now();
|
|
12321
12331
|
if (client.cache)
|