summaryrefslogtreecommitdiffstats
path: root/bridge/whatsapp/whatsapp.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-03-13 18:48:30 +0100
committerWim <wim@42.be>2022-03-20 14:57:48 +0100
commit4da1444ffc5b55b01af29d9bbe56f36e25f0907c (patch)
tree0c0af43f48ebcb3591d6be9ce70a405ea098f7d5 /bridge/whatsapp/whatsapp.go
parent21c4e56d1631008a5a3cff012a36859dfb1ccb4d (diff)
downloadmatterbridge-msglm-4da1444ffc5b55b01af29d9bbe56f36e25f0907c.tar.gz
matterbridge-msglm-4da1444ffc5b55b01af29d9bbe56f36e25f0907c.tar.bz2
matterbridge-msglm-4da1444ffc5b55b01af29d9bbe56f36e25f0907c.zip
Check for Conversation on receiving messages (whatsapp)
Diffstat (limited to 'bridge/whatsapp/whatsapp.go')
-rw-r--r--bridge/whatsapp/whatsapp.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/bridge/whatsapp/whatsapp.go b/bridge/whatsapp/whatsapp.go
index 7ee4045f..7e79ecaf 100644
--- a/bridge/whatsapp/whatsapp.go
+++ b/bridge/whatsapp/whatsapp.go
@@ -324,14 +324,9 @@ func (b *Bwhatsapp) Send(msg config.Message) (string, error) {
message.Conversation = &text
- /*
- message.ExtendedTextMessage = &proto.ExtendedTextMessage{
- Text: &text,
- }
- */
-
ID := whatsmeow.GenerateMessageID()
- b.Log.Debugf("=> Sending %#v to %#v with ID %s", message, groupJID, ID)
+
+ b.Log.Debugf("=> Sending %#v", message)
_, err := b.wc.SendMessage(groupJID, ID, &message)