mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 09:03:10 +01:00
Fix default page number in list command
This commit is contained in:
parent
ba4aaa8f52
commit
abffc0b54c
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,7 @@ func (handler *CommandHandler) CommandList(ce *CommandEvent) {
|
|||
ce.Reply("**Usage:** `list <contacts|groups> [page] [items per page]`")
|
||||
}
|
||||
var err error
|
||||
page := 0
|
||||
page := 1
|
||||
max := 100
|
||||
if len(ce.Args) > 1 {
|
||||
page, err = strconv.Atoi(ce.Args[1])
|
||||
|
|
Loading…
Reference in a new issue