mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 17:13:11 +01:00
Mark custom puppets as registered automatically. Fixes #128
This commit is contained in:
parent
ec0e60c71c
commit
4bdbe67c94
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue