Mark custom puppets as registered automatically. Fixes #128

This commit is contained in:
Tulir Asokan committed 2019-12-30 20:40:30 +02:00
1 parent ec0e60c71c
commit 4bdbe67c94
1 file changed
+1
+1
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