Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(rexctl): stop asking for an upgrade on the current release (#3562)

Hampus8f577f3955dd
diff --git a/fluxer_rexctl/cmd/app.go b/fluxer_rexctl/cmd/app.go
index 128493956..161fc3e99 100644
--- a/fluxer_rexctl/cmd/app.go
+++ b/fluxer_rexctl/cmd/app.go
@@ -231,6 +231,9 @@ func (a *App) Admin(ctx context.Context) (*adminapi.Client, *instance.Instance,
func (a *App) adminClient(inst *instance.Instance, p *engine.Project) *adminapi.Client {
c := adminapi.New(adminapi.NewExec(p), a.Version)
c.OnSkew = func(apiVersion string) {
+ if inst.State != nil && inst.State.Release == a.Version {
+ return
+ }
if inst.State != nil && inst.State.FailedRelease == a.Version {
a.UI.Warn(fmt.Sprintf("rexctl is %s and Fluxer is still %s. The upgrade to %s didn't start.", a.Version, apiVersion, a.Version), "")
return