MCPcopy Create free account
hub / github.com/CommE2E/comm / getVersionUnsupportedError

Function getVersionUnsupportedError

web/utils/version-utils.js:6–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { getConfig } from 'lib/utils/config.js';
5
6function getVersionUnsupportedError(): string {
7 const actionRequestMessage = isDesktopPlatform(
8 getConfig().platformDetails.platform,
9 )
10 ? 'Please reload the app'
11 : 'Please refresh the page';
12 return (
13 'Your app version is pretty old, and the server doesn’t know how ' +
14 `to speak to it anymore. ${actionRequestMessage}.`
15 );
16}
17
18function getBackupIsNewerThanAppError(): string {
19 const actionRequestMessage = isDesktopPlatform(

Callers 4

renderMethod · 0.90
VersionUnsupportedModalFunction · 0.90
AddKeyserverModalFunction · 0.90
SIWELoginFormFunction · 0.90

Calls 2

isDesktopPlatformFunction · 0.90
getConfigFunction · 0.90

Tested by

no test coverage detected