Skip to content

Commit

Permalink
Remove updating custom ghost info on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jun 9, 2023
1 parent b2d7077 commit 67c8d92
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
12 changes: 0 additions & 12 deletions puppet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 67c8d92

Please sign in to comment.