mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 10:04:33 +02:00
Allow sending blank message if an attachment is present
This commit is contained in:
parent
eb3fb5e222
commit
33e2d63de1
|
@ -50,7 +50,7 @@ const chatModuleMessage=ref(null);
|
|||
function transmitNewMessage(){
|
||||
|
||||
chat.inputText = chat.inputText.trim();
|
||||
if (chat.inputText.length==0)
|
||||
if (chat.inputText.length==0 && chat.inputFileName == "-")
|
||||
return;
|
||||
if (chat.selectedCallsign.startsWith("BC-")) {
|
||||
|
||||
|
|
|
@ -42,9 +42,9 @@ export const useChatStore = defineStore("chatStore", () => {
|
|||
});
|
||||
var inputText = ref("");
|
||||
var inputFile = ref();
|
||||
var inputFileName = ref();
|
||||
var inputFileType = ref();
|
||||
var inputFileSize = ref();
|
||||
var inputFileName = ref("-");
|
||||
var inputFileType = ref("-");
|
||||
var inputFileSize = ref("-");
|
||||
|
||||
var callsign_list = ref();
|
||||
var sorted_chat_list = ref();
|
||||
|
|
Loading…
Reference in a new issue