fix bug with resending messages being encrypted twice
This commit is contained in:
Vendored
+6
-3
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user