@talkjs/core 1.6.2 → 1.6.3
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/README.md +4 -0
- package/dist/talkSession.cjs +1 -1
- package/dist/talkSession.d.ts +13 -1
- package/dist/talkSession.js +932 -870
- package/package.json +1 -1
package/dist/talkSession.d.ts
CHANGED
|
@@ -337,6 +337,8 @@ export declare interface ConversationRef {
|
|
|
337
337
|
* Note that `Participant` is not the same as `User`.
|
|
338
338
|
* A `Participant` represents a user's settings related to a specific conversation.
|
|
339
339
|
*
|
|
340
|
+
* Calling this method multiple times with the same ID reuses the same {@link ParticipantRef} object.
|
|
341
|
+
*
|
|
340
342
|
* Calling {@link ConversationRef.createIfNotExists|ConversationRef.createIfNotExists} or {@link ConversationRef.set|ConversationRef.set} will automatically add the current user as a participant.
|
|
341
343
|
*
|
|
342
344
|
* @example To add "Alice" to the conversation "Cats"
|
|
@@ -364,6 +366,9 @@ export declare interface ConversationRef {
|
|
|
364
366
|
*
|
|
365
367
|
* @remarks
|
|
366
368
|
* Use this if you need to fetch, delete, or edit a specific message in this conversation, and you know its message ID.
|
|
369
|
+
*
|
|
370
|
+
* Calling this method multiple times with the same ID reuses the same {@link MessageRef} object.
|
|
371
|
+
*
|
|
367
372
|
* To fetch the most recent messages in this conversation, use {@link ConversationRef.subscribeMessages} instead.
|
|
368
373
|
* To send a message, use {@link ConversationRef.send}.
|
|
369
374
|
*
|
|
@@ -1293,6 +1298,8 @@ export declare interface MessageRef {
|
|
|
1293
1298
|
* If you call `.reaction` with an invalid emoji, it will still succeed and you will still get a `ReactionRef`.
|
|
1294
1299
|
* However, the TalkJS server will reject any calls that use an invalid emoji.
|
|
1295
1300
|
*
|
|
1301
|
+
* Calling this method multiple times with the same emoji reuses the same {@link ReactionRef} object.
|
|
1302
|
+
*
|
|
1296
1303
|
* In the future, this will also be used to fetch a full list of people who used that specific reaction on the message.
|
|
1297
1304
|
*
|
|
1298
1305
|
* @example Reacting to the message with a Unicode emoji
|
|
@@ -2200,9 +2207,12 @@ export declare interface TalkSession {
|
|
|
2200
2207
|
*
|
|
2201
2208
|
* @remarks
|
|
2202
2209
|
* This is the entry-point for all operations that affect a user globally, such as editing their name.
|
|
2210
|
+
*
|
|
2211
|
+
* Calling this method multiple times with the same ID reuses the same {@link UserRef} object.
|
|
2212
|
+
*
|
|
2203
2213
|
* For operations related to a user's participation in a conversation, do: `session.conversation(<convId>).participant(<userId>)`
|
|
2204
2214
|
*
|
|
2205
|
-
* @see {@link Session.currentUser} which is a short-hand for `session.user(
|
|
2215
|
+
* @see {@link Session.currentUser} which is a short-hand for `session.user(meId)`.
|
|
2206
2216
|
*
|
|
2207
2217
|
* @example Initialising a user
|
|
2208
2218
|
* ```
|
|
@@ -2232,6 +2242,8 @@ export declare interface TalkSession {
|
|
|
2232
2242
|
* This is the entry-point for all conversation-related operations.
|
|
2233
2243
|
* This includes operations affecting conversation attributes, but also anything related to messages and participants.
|
|
2234
2244
|
*
|
|
2245
|
+
* Calling this method multiple times with the same ID reuses the same {@link ConversationRef} object.
|
|
2246
|
+
*
|
|
2235
2247
|
* @example Ensure that the conversation exists and you are a participant
|
|
2236
2248
|
* ```
|
|
2237
2249
|
* session.conversation("test").createIfNotExists();
|