fix bug with resending messages being encrypted twice

This commit is contained in:
marlon-erler
2024-07-10 18:03:14 +02:00
parent 13d61c052b
commit 0cf2acbf26
2 changed files with 13 additions and 6 deletions
+6 -3
View File
@@ -462,13 +462,16 @@
// messages
sendNewMessage = async () => {
if (this.cannotSendMessage.value == true) return;
const message = await this.createMessage(this.composingMessage.value);
this.sendExistingMessage(message);
await this.sendMessageText(this.composingMessage.value);
this.composingMessage.value = "";
};
sendMessageText = async (text) => {
const message = await this.createMessage(text);
this.sendExistingMessage(message);
};
resendMessage = (message) => {
if (this.cannotResendMessage.value == true) return;
this.sendExistingMessage(message);
this.sendMessageText(message.body);
};
createMessage = async (messageText) => {
const secondaryChannelNames = [