fix: allow empty text if message input has attachments
This commit is contained in:
parent
085fe6ddd6
commit
845485595f
1 changed files with 1 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue