|
|
@ -30,7 +30,9 @@ func (b *WhappBridge) Accepts(c *deltachat.Chat, m *deltachat.Message) bool {
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return chatJID != nil
|
|
|
|
// Only forward messages for known groups,
|
|
|
|
|
|
|
|
// Don't forward info messages like "group name changed" etc.
|
|
|
|
|
|
|
|
return chatJID != nil && !m.IsInfo()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (b *WhappBridge) Execute(
|
|
|
|
func (b *WhappBridge) Execute(
|
|
|
@ -51,10 +53,6 @@ func (b *WhappBridge) Execute(
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if m.IsInfo() {
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
text := whatsapp.TextMessage{
|
|
|
|
text := whatsapp.TextMessage{
|
|
|
|
Info: whatsapp.MessageInfo{
|
|
|
|
Info: whatsapp.MessageInfo{
|
|
|
|
RemoteJid: *JID,
|
|
|
|
RemoteJid: *JID,
|
|
|
|