Remove updating custom ghost info on startup

This commit is contained in:
Tulir Asokan
2023-06-09 17:28:51 +03:00
parent b2d7077e8d
commit 67c8d9237e
2 changed files with 0 additions and 13 deletions

View File

@@ -102,7 +102,6 @@ func (br *DiscordBridge) Start() {
if br.Config.Bridge.Provisioning.SharedSecret != "disable" {
br.provisioning = newProvisioningAPI(br)
}
go br.updatePuppetsContactInfo()
br.WaitWebsocketConnected()
go br.startUsers()
}

View File

@@ -158,18 +158,6 @@ func (br *DiscordBridge) FormatPuppetMXID(did string) id.UserID {
)
}
func (br *DiscordBridge) updatePuppetsContactInfo() {
if br.Config.Homeserver.Software != bridgeconfig.SoftwareHungry {
return
}
for _, puppet := range br.GetAllPuppets() {
if !puppet.ContactInfoSet && puppet.NameSet {
puppet.ResendContactInfo()
puppet.Update()
}
}
}
func (puppet *Puppet) GetDisplayname() string {
return puppet.Name
}