fix: allow empty text if message input has attachments

This commit is contained in:
ayn2op 2025-11-30 16:19:59 -05:00
parent 085fe6ddd6
commit 845485595f

View file

@ -160,14 +160,11 @@ func (mi *messageInput) send() {
}
text := strings.TrimSpace(mi.GetText())
if text == "" {
if text == "" && len(mi.sendMessageData.Files) == 0 {
return
}
text = processText(app.chatView.selectedChannelID, []byte(text))
if text == "" {
return
}
if mi.edit {
m, err := app.chatView.messagesList.selectedMessage()