mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-26 06:31:36 +00:00
parent
1e94b716fb
commit
ebd2073144
@ -78,8 +78,10 @@ func (b *Bwhatsapp) HandleTextMessage(message whatsapp.TextMessage) {
|
|||||||
senderJID := message.Info.SenderJid
|
senderJID := message.Info.SenderJid
|
||||||
if len(senderJID) == 0 {
|
if len(senderJID) == 0 {
|
||||||
// TODO workaround till https://github.com/Rhymen/go-whatsapp/issues/86 resolved
|
// TODO workaround till https://github.com/Rhymen/go-whatsapp/issues/86 resolved
|
||||||
|
if message.Info.Source != nil {
|
||||||
senderJID = *message.Info.Source.Participant
|
senderJID = *message.Info.Source.Participant
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// translate sender's JID to the nicest username we can get
|
// translate sender's JID to the nicest username we can get
|
||||||
senderName := b.getSenderName(senderJID)
|
senderName := b.getSenderName(senderJID)
|
||||||
|
Loading…
Reference in New Issue
Block a user