5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-20 03:12:31 +00:00
matterbridge/bridge/whatsapp
escoand 58b6c4d277
Handle broadcasts as groups in Whatsapp (#1213)
The current way to get the correct JID of a WhatsApp group is to dump all JIDs to the log and grab the right one. This is working for for groups fine but not for broadcast, as they are not print out.

According to https://www.npmjs.com/package/@noamalffasy/js-whatsapp we have these possibilities:
* Chats: `[country code][phone number]@s.whatsapp.net`
* Groups: `[country code][phone number of creator]-[timestamp of group creation]@g.us`
* Broadcast Channels: `[timestamp of group creation]@broadcast`

But the bridge does currently interprets (and prints) the only second option.
2020-08-26 22:27:50 +02:00
..
handlers.go Update whatsapp vendor and fix a panic (#1209) 2020-08-24 23:35:08 +02:00
helpers.go Reload user information when a new contact is detected (whatsapp) (#1160) 2020-06-25 00:35:49 +02:00
whatsapp.go Handle broadcasts as groups in Whatsapp (#1213) 2020-08-26 22:27:50 +02:00