     var showSocketDisconnectWarning = false
     var waitingToShowDisconnect = false
     var waitingForInitialLoad = true
+    var registrationStatusChanged = false
 
     /// param is hide because it recieves a "connected" signal
     func showSocketDisconnectedOverlay(_ hide: Bool) {

    }

    func userHasChangedRegistrationStatus() {
        // we have to ask for a new metaphysics JWT ( as they contain metadata about bidder status )
        // so we need to pull down the current view heirarchy, and recreate it
        // Which luckily, connectToNetwork() does for us via setupWithSale()
        connectToNetwork()
    }

    func dismissLiveAuctionsModal() {

        app.isIdleTimerDisabled = true

        if waitingForInitialLoad {
            showLoadingView()
        } else if registrationStatusChanged {
            // we have to ask for a new metaphysics JWT ( as they contain metadata about bidder status )
            // so we need to pull down the current view heirarchy, and recreate it
            // Which luckily, connectToNetwork() does for us via setupWithSale()
            showLoadingView()
            connectToNetwork()
            registrationStatusChanged = false
        }
    }

    func showLoadingView() {
        guard loadingView == nil else { return } // Already showing a loading view, don't show another.

        loadingView = LiveAuctionLoadingView().then {
            $0.operation = applyWeakly(self, LiveAuctionViewController.dismissLiveAuctionsModal)
            view.addSubview($0)
            $0.align(toView: view)
        }
    }

