forked from Ivasoft/mattermost-mobile
Bump build number to 450 (#6950)
* Fix upgrade path * Introduce Upgrade helper * Reset server database schema version to 1 * Enable release builds on the CI * Bump build number to 450
This commit is contained in:
@@ -47,11 +47,11 @@ export async function initialize() {
|
||||
|
||||
export async function start() {
|
||||
await initialize();
|
||||
await WebsocketManager.init(serverCredentials);
|
||||
|
||||
PushNotifications.init(serverCredentials.length > 0);
|
||||
|
||||
registerNavigationListeners();
|
||||
registerScreens();
|
||||
initialLaunch();
|
||||
await initialLaunch();
|
||||
WebsocketManager.init(serverCredentials);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ const initialNotificationTypes = [PushNotification.NOTIFICATION_TYPE.MESSAGE, Pu
|
||||
export const initialLaunch = async () => {
|
||||
const deepLinkUrl = await Linking.getInitialURL();
|
||||
if (deepLinkUrl) {
|
||||
launchAppFromDeepLink(deepLinkUrl, true);
|
||||
await launchAppFromDeepLink(deepLinkUrl, true);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -43,21 +43,21 @@ export const initialLaunch = async () => {
|
||||
tapped = delivered.find((d) => (d as unknown as NotificationData).ack_id === notification?.payload.ack_id) == null;
|
||||
}
|
||||
if (initialNotificationTypes.includes(notification?.payload?.type) && tapped) {
|
||||
launchAppFromNotification(convertToNotificationData(notification!), true);
|
||||
await launchAppFromNotification(convertToNotificationData(notification!), true);
|
||||
return;
|
||||
}
|
||||
|
||||
launchApp({launchType: Launch.Normal, coldStart: true});
|
||||
await launchApp({launchType: Launch.Normal, coldStart: true});
|
||||
};
|
||||
|
||||
const launchAppFromDeepLink = (deepLinkUrl: string, coldStart = false) => {
|
||||
const launchAppFromDeepLink = async (deepLinkUrl: string, coldStart = false) => {
|
||||
const props = getLaunchPropsFromDeepLink(deepLinkUrl, coldStart);
|
||||
launchApp(props);
|
||||
return launchApp(props);
|
||||
};
|
||||
|
||||
const launchAppFromNotification = async (notification: NotificationWithData, coldStart = false) => {
|
||||
const props = await getLaunchPropsFromNotification(notification, coldStart);
|
||||
launchApp(props);
|
||||
return launchApp(props);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user