Skip to content

Commit 792d96f

Browse files
committed
Update update checker and protobufs
1 parent 74c49f5 commit 792d96f

File tree

6 files changed

+1274
-1016
lines changed

6 files changed

+1274
-1016
lines changed

mdtest/main.go

-14
Original file line numberDiff line numberDiff line change
@@ -275,20 +275,6 @@ func handleCmd(cmd string, args []string) {
275275
}
276276
}
277277
}
278-
case "checkupdate":
279-
resp, err := cli.CheckUpdate()
280-
if err != nil {
281-
log.Errorf("Failed to check for updates: %v", err)
282-
} else {
283-
log.Debugf("Version data: %#v", resp)
284-
if resp.ParsedVersion == store.GetWAVersion() {
285-
log.Infof("Client is up to date")
286-
} else if store.GetWAVersion().LessThan(resp.ParsedVersion) {
287-
log.Warnf("Client is outdated")
288-
} else {
289-
log.Infof("Client is newer than latest")
290-
}
291-
}
292278
case "subscribepresence":
293279
if len(args) < 1 {
294280
log.Errorf("Usage: subscribepresence <jid>")

0 commit comments

Comments
 (0)