Remove updating custom ghost info on startup
This commit is contained in:
1
main.go
1
main.go
@@ -102,7 +102,6 @@ func (br *DiscordBridge) Start() {
|
|||||||
if br.Config.Bridge.Provisioning.SharedSecret != "disable" {
|
if br.Config.Bridge.Provisioning.SharedSecret != "disable" {
|
||||||
br.provisioning = newProvisioningAPI(br)
|
br.provisioning = newProvisioningAPI(br)
|
||||||
}
|
}
|
||||||
go br.updatePuppetsContactInfo()
|
|
||||||
br.WaitWebsocketConnected()
|
br.WaitWebsocketConnected()
|
||||||
go br.startUsers()
|
go br.startUsers()
|
||||||
}
|
}
|
||||||
|
|||||||
12
puppet.go
12
puppet.go
@@ -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 {
|
func (puppet *Puppet) GetDisplayname() string {
|
||||||
return puppet.Name
|
return puppet.Name
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user