forked from MirrorHub/mautrix-whatsapp
Disable double puppeting in broadcast rooms. Fixes #506
(also fixes #371)
This commit is contained in:
parent
1bfed718fe
commit
87b5c91fe7
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ type Puppet struct {
|
|||
}
|
||||
|
||||
func (puppet *Puppet) IntentFor(portal *Portal) *appservice.IntentAPI {
|
||||
if puppet.customIntent == nil || portal.Key.JID == puppet.JID {
|
||||
if puppet.customIntent == nil || portal.Key.JID == puppet.JID || (portal.Key.JID.Server == types.BroadcastServer && portal.Key.Receiver != puppet.JID) {
|
||||
return puppet.DefaultIntent()
|
||||
}
|
||||
return puppet.customIntent
|
||||
|
|
Loading…
Reference in a new issue