Mark custom puppets as registered automatically. Fixes #128

This commit is contained in:
Tulir Asokan 2019-12-30 20:40:20 +02:00
parent ec0e60c71c
commit 4bdbe67c94

View file

@ -56,6 +56,7 @@ func (puppet *Puppet) SwitchCustomMXID(accessToken string, mxid string) error {
if len(puppet.CustomMXID) > 0 {
puppet.bridge.puppetsByCustomMXID[puppet.CustomMXID] = puppet
}
puppet.bridge.AS.StateStore.MarkRegistered(puppet.CustomMXID)
puppet.Update()
// TODO leave rooms with default puppet
return nil