diff --git a/src/components/Chat/ChatDirect.tsx b/src/components/Chat/ChatDirect.tsx
index 848c12a..a053b67 100644
--- a/src/components/Chat/ChatDirect.tsx
+++ b/src/components/Chat/ChatDirect.tsx
@@ -342,7 +342,7 @@ const clearEditorContent = () => {
repliedTo
}
const sendMessageFunc = async () => {
- await sendChatDirect({ chatReference: undefined, messageText: htmlContent, otherData}, selectedDirect?.address, publicKeyOfRecipient, false)
+ return await sendChatDirect({ chatReference: undefined, messageText: htmlContent, otherData}, selectedDirect?.address, publicKeyOfRecipient, false)
};
diff --git a/src/components/Chat/ChatGroup.tsx b/src/components/Chat/ChatGroup.tsx
index 858a3fd..e8de1c1 100644
--- a/src/components/Chat/ChatGroup.tsx
+++ b/src/components/Chat/ChatGroup.tsx
@@ -562,7 +562,7 @@ const clearEditorContent = () => {
// const res = await sendChatGroup({groupId: selectedGroup,messageText: encryptSingle})
const sendMessageFunc = async () => {
- await sendChatGroup({groupId: selectedGroup,messageText: encryptSingle})
+ return await sendChatGroup({groupId: selectedGroup,messageText: encryptSingle})
};
// Add the function to the queue
@@ -641,7 +641,7 @@ const clearEditorContent = () => {
// const res = await sendChatGroup({groupId: selectedGroup,messageText: encryptSingle})
const sendMessageFunc = async () => {
- await sendChatGroup({groupId: selectedGroup,messageText: encryptSingle, chatReference: chatMessage.signature})
+ return await sendChatGroup({groupId: selectedGroup,messageText: encryptSingle, chatReference: chatMessage.signature})
};
// Add the function to the queue
@@ -745,9 +745,12 @@ const clearEditorContent = () => {