prepare sending and receiving files

This commit is contained in:
marlon-erler
2024-07-27 18:03:12 +02:00
parent 8a56c0aab2
commit b7d0479a23
2 changed files with 82 additions and 3 deletions
+5 -1
View File
@@ -161,7 +161,7 @@ export default class ConnectionModel {
tryToSendMessage = (chatMessage: ChatMessage): boolean => {
const stringifiedBody: string = stringify(chatMessage);
const isSent: boolean = this.udn.sendMessage(
const isSent: boolean = this.sendPlainMessage(
chatMessage.channel,
stringifiedBody
);
@@ -169,6 +169,10 @@ export default class ConnectionModel {
return isSent;
};
sendPlainMessage = (channel: string, body: string): boolean => {
return this.udn.sendMessage(channel, body);
};
// storage
getPreviousAddressPath = (): string[] => {
return StorageModel.getPath(