Allow using custom puppet for backfilling
This commit is contained in:
parent
9002bf62ed
commit
c0fc06b410
1 changed files with 3 additions and 1 deletions
|
@ -161,7 +161,9 @@ func (puppet *Puppet) PhoneNumber() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (puppet *Puppet) IntentFor(portal *Portal) *appservice.IntentAPI {
|
func (puppet *Puppet) IntentFor(portal *Portal) *appservice.IntentAPI {
|
||||||
if (!portal.IsPrivateChat() && puppet.customIntent == nil) || portal.backfilling || portal.Key.JID == puppet.JID {
|
if (!portal.IsPrivateChat() && puppet.customIntent == nil) ||
|
||||||
|
(portal.backfilling && portal.bridge.Config.Bridge.InviteOwnPuppetForBackfilling) ||
|
||||||
|
portal.Key.JID == puppet.JID {
|
||||||
return puppet.DefaultIntent()
|
return puppet.DefaultIntent()
|
||||||
}
|
}
|
||||||
return puppet.customIntent
|
return puppet.customIntent
|
||||||
|
|
Loading…
Reference in a new issue