mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2025-01-05 20:34:50 +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 {
|
if len(puppet.CustomMXID) > 0 {
|
||||||
puppet.bridge.puppetsByCustomMXID[puppet.CustomMXID] = puppet
|
puppet.bridge.puppetsByCustomMXID[puppet.CustomMXID] = puppet
|
||||||
}
|
}
|
||||||
|
puppet.bridge.AS.StateStore.MarkRegistered(puppet.CustomMXID)
|
||||||
puppet.Update()
|
puppet.Update()
|
||||||
// TODO leave rooms with default puppet
|
// TODO leave rooms with default puppet
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue