corp-chat-library-antd-react-socket 1.2.24 → 1.2.25

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 CHANGED
@@ -202,6 +202,16 @@ export interface fetchChatMessagesPathResponse {
202
202
 
203
203
  ### "fetchMessageContextPath"
204
204
  When a reply points to a message that is not loaded in the current chat, the chat will load a pack of messages around that target message and then scroll to it.\
205
+ SMS alias:
206
+ ```ts
207
+ POST /api/sms/chat/messages/{chatId}/{messageId}
208
+ ```
209
+
210
+ Set:
211
+ ```ts
212
+ fetchMessageContextPath: "/api/sms/chat/messages"
213
+ ```
214
+
205
215
  Request URL:
206
216
  ```ts
207
217
  `${fetchMessageContextPath}/${chatId}/${messageId}`
package/dist/index.js CHANGED
@@ -10666,7 +10666,7 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
10666
10666
  if (!Z) return !1;
10667
10667
  if (p) {
10668
10668
  try {
10669
- const Q = Xe(), se = D || (P ? `${P}/context` : null);
10669
+ const Q = Xe(), se = D;
10670
10670
  if (!Q || !se || !d) return !1;
10671
10671
  const _e = (await Q.post(
10672
10672
  `${se}/${W}/${q}`,
@@ -10688,7 +10688,7 @@ const _g = ({ children: e, onNewMessage: t, onMessageUpdated: r }) => {
10688
10688
  return !1;
10689
10689
  }
10690
10690
  return !1;
10691
- }, [d, p, P, D, Xe, Z, Le]), pn = De(async ({ to: W, text: q, files: Q, answer: se, timestamp: ae, from_id: ie }) => {
10691
+ }, [d, p, D, Xe, Z, Le]), pn = De(async ({ to: W, text: q, files: Q, answer: se, timestamp: ae, from_id: ie }) => {
10692
10692
  $r({
10693
10693
  from_id: ie,
10694
10694
  id: ae,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corp-chat-library-antd-react-socket",
3
3
  "description": "React chat component with Ant Design and Socket.io support",
4
- "version": "1.2.24",
4
+ "version": "1.2.25",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",