Skip to content

Commit 53afc19

Browse files
tulirRaz Omessi
authored and
Raz Omessi
committed
Update update checker and protobufs
1 parent df9cc90 commit 53afc19

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
@@ -312,20 +312,6 @@ func handleCmd(cmd string, args []string) {
312312
}
313313
}
314314
}
315-
case "checkupdate":
316-
resp, err := cli.CheckUpdate()
317-
if err != nil {
318-
log.Errorf("Failed to check for updates: %v", err)
319-
} else {
320-
log.Debugf("Version data: %#v", resp)
321-
if resp.ParsedVersion == store.GetWAVersion() {
322-
log.Infof("Client is up to date")
323-
} else if store.GetWAVersion().LessThan(resp.ParsedVersion) {
324-
log.Warnf("Client is outdated")
325-
} else {
326-
log.Infof("Client is newer than latest")
327-
}
328-
}
329315
case "subscribepresence":
330316
if len(args) < 1 {
331317
log.Errorf("Usage: subscribepresence <jid>")

0 commit comments

Comments
 (0)