Browse Source

Mark custom puppets as registered automatically. Fixes #128

Tulir Asokan 5 years ago
parent
commit
4bdbe67c94
1 changed files with 1 additions and 0 deletions
  1. 1 0
      custompuppet.go

+ 1 - 0
custompuppet.go

@@ -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