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