Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 4f237c94adc36d6f82eb2207213870963f812d2e Author: Wim <wim@42.be> Date: Thu Jul 30 23:55:31 2020 +0000 Handle panic in whatsapp. Fixes #1180 (#1184) diff --git a/bridge/whatsapp/handlers.go b/bridge/whatsapp/handlers.go index 8ea4b07..9adb1eb 100644 --- a/bridge/whatsapp/handlers.go +++ b/bridge/whatsapp/handlers.go @@ -787 +789 @@ 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 - senderJID = *message.Info.Source.Participant + if message.Info.Source != nil { + senderJID = *message.Info.Source.Participant + }   }     // translate sender's JID to the nicest username we can get