Skip to content

Commit

Permalink
Update update checker and protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed May 22, 2024
1 parent 74c49f5 commit 792d96f
Show file tree
Hide file tree
Showing 6 changed files with 1,274 additions and 1,016 deletions.
14 changes: 0 additions & 14 deletions mdtest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,20 +275,6 @@ func handleCmd(cmd string, args []string) {
}
}
}
case "checkupdate":
resp, err := cli.CheckUpdate()
if err != nil {
log.Errorf("Failed to check for updates: %v", err)
} else {
log.Debugf("Version data: %#v", resp)
if resp.ParsedVersion == store.GetWAVersion() {
log.Infof("Client is up to date")
} else if store.GetWAVersion().LessThan(resp.ParsedVersion) {
log.Warnf("Client is outdated")
} else {
log.Infof("Client is newer than latest")
}
}
case "subscribepresence":
if len(args) < 1 {
log.Errorf("Usage: subscribepresence <jid>")
Expand Down
Loading

0 comments on commit 792d96f

Please sign in to comment.