@koralabs/handle-chat-sdk 0.0.2 → 0.0.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.
@@ -14,4 +14,7 @@ export declare const encryptAndBuildMessage: ({ message, senderUser, senderStore
14
14
  senderStore: SignalProtocolStore;
15
15
  recipientUser: ChatUser;
16
16
  sessionInit?: boolean;
17
- }) => Promise<ProcessedChatMessage>;
17
+ }) => Promise<{
18
+ msg: ChatMessage;
19
+ processedMsg: ProcessedChatMessage;
20
+ }>;
@@ -42,7 +42,7 @@ const buildMessage = async ({ encryptedMessage, decryptedMessage, recipientAddre
42
42
  if (sessionInit)
43
43
  msg.session_init = true;
44
44
  const processedMsg = { id, to, from, timestamp, messageText: decryptedMessage };
45
- return processedMsg;
45
+ return { msg, processedMsg };
46
46
  };
47
47
  export const encryptAndBuildMessage = async ({ message, senderUser, senderStore, recipientUser, sessionInit }) => {
48
48
  const recipientProtocolAddress = new SignalProtocolAddress(recipientUser.address, recipientUser.deviceId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/handle-chat-sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "SDK for handling chat functionalities",
5
5
  "main": "index.js",
6
6
  "type": "module",