|
@@ -151,7 +151,6 @@ func (br *WABridge) Start() {
|
|
br.Provisioning.Init()
|
|
br.Provisioning.Init()
|
|
}
|
|
}
|
|
go br.CheckWhatsAppUpdate()
|
|
go br.CheckWhatsAppUpdate()
|
|
- go br.UpdatePuppetContactInfo()
|
|
|
|
go br.StartUsers()
|
|
go br.StartUsers()
|
|
if br.Config.Metrics.Enabled {
|
|
if br.Config.Metrics.Enabled {
|
|
go br.Metrics.Start()
|
|
go br.Metrics.Start()
|
|
@@ -182,14 +181,6 @@ func (br *WABridge) CheckWhatsAppUpdate() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-func (br *WABridge) UpdatePuppetContactInfo() {
|
|
|
|
- for _, puppet := range br.GetAllPuppets() {
|
|
|
|
- if puppet.UpdateContactInfo() {
|
|
|
|
- puppet.Update()
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
func (br *WABridge) Loop() {
|
|
func (br *WABridge) Loop() {
|
|
for {
|
|
for {
|
|
br.SleepAndDeleteUpcoming()
|
|
br.SleepAndDeleteUpcoming()
|