api.initCustomHeaders();
return true;
case CLIENT_FRONTEND_VERSION_SKEW:
// Display a message to the user that he needs to reload the client.
StatusMessage skewMsg = new StatusMessage(statusManager, MessageType.LOADING,
"A new version of Collide is available. Please Reload.");
skewMsg.setDismissable(false);
skewMsg.addAction(StatusMessage.RELOAD_ACTION);
skewMsg.fireDelayed(500);
return false;
case NOT_LOGGED_IN:
// Display a message to the user that he needs to reload the client.
StatusMessage loginMsg = new StatusMessage(statusManager, MessageType.LOADING,
"You have been signed out. Please reload to sign in.");
loginMsg.setDismissable(true);
loginMsg.addAction(StatusMessage.RELOAD_ACTION);
loginMsg.fireDelayed(500);
return false;
default:
// Allow the RPC retry logic to proceed.
return true;
}