summaryrefslogtreecommitdiffstats
path: root/matterclient/matterclient.go
diff options
context:
space:
mode:
Diffstat (limited to 'matterclient/matterclient.go')
-rw-r--r--matterclient/matterclient.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index f2aa44d9..bfaae952 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -277,6 +277,13 @@ func (m *MMClient) WsReceiver() {
// check if we didn't empty the message
if msg.Text != "" {
m.MessageChan <- msg
+ continue
+ }
+ // if we have file attached but the message is empty, also send it
+ if msg.Post != nil {
+ if msg.Text != "" || len(msg.Post.FileIds) > 0 {
+ m.MessageChan <- msg
+ }
}
continue
}