From 2f506425c25504662f50f49e742529195d63ff27 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 24 Aug 2020 23:35:08 +0200 Subject: Update whatsapp vendor and fix a panic (#1209) * Fix another whatsapp panic * Update whatsapp vendor --- bridge/whatsapp/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/whatsapp') diff --git a/bridge/whatsapp/handlers.go b/bridge/whatsapp/handlers.go index 9adb1eb0..f58b30f8 100644 --- a/bridge/whatsapp/handlers.go +++ b/bridge/whatsapp/handlers.go @@ -78,7 +78,7 @@ func (b *Bwhatsapp) HandleTextMessage(message whatsapp.TextMessage) { senderJID := message.Info.SenderJid if len(senderJID) == 0 { // TODO workaround till https://github.com/Rhymen/go-whatsapp/issues/86 resolved - if message.Info.Source != nil { + if message.Info.Source != nil && message.Info.Source.Participant != nil { senderJID = *message.Info.Source.Participant } } -- cgit v1.2.3