fix(count-auto): load chats before counting
This commit is contained in:
parent
9c7d2a9c9e
commit
82eba977cd
|
@ -6,6 +6,9 @@ import (
|
|||
)
|
||||
|
||||
func doCountAuto() {
|
||||
if err := me.chats.ConfigLoad(); err != nil {
|
||||
badExit(err)
|
||||
}
|
||||
count := 0
|
||||
for _, chat := range me.chats.GetChats() {
|
||||
if strings.HasPrefix(chat.GetChatName(), "Auto ") {
|
||||
|
@ -13,4 +16,4 @@ func doCountAuto() {
|
|||
}
|
||||
}
|
||||
fmt.Println(count)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue