Move double puppeting login code to mautrix-go

This commit is contained in:
Tulir Asokan
2023-08-22 18:55:09 +03:00
parent 345391f8b1
commit 185f9a8963
6 changed files with 71 additions and 198 deletions

View File

@@ -29,7 +29,7 @@ type Config struct {
func (config *Config) CanAutoDoublePuppet(userID id.UserID) bool {
_, homeserver, _ := userID.Parse()
_, hasSecret := config.Bridge.LoginSharedSecretMap[homeserver]
_, hasSecret := config.Bridge.DoublePuppetConfig.SharedSecretMap[homeserver]
return hasSecret
}