apply filter when sending message

This commit is contained in:
marlon-erler
2026-09-26 13:31:36 +02:00
parent 6a8febfbd4
commit b6eeba365c
3 changed files with 111 additions and 105 deletions
+2 -2
View File
@@ -198,7 +198,7 @@ export default class ChatModel {
body: string,
inlineReplyId?: string,
fileContent?: FileContent<string>,
): Promise<boolean> => {
): Promise<string|false> => {
const nameAndChannel = this.getNameAndChannel();
if (nameAndChannel == false) return false;
const [senderName, combinedChannel] = nameAndChannel;
@@ -214,7 +214,7 @@ export default class ChatModel {
this.addMessage(chatMessage);
this.connectionModel.sendMessageOrStore(chatMessage);
return true;
return chatMessage.id;
};
readonly decryptMessage = async (