Skip to content

Commit

Permalink
fix following
Browse files Browse the repository at this point in the history
  • Loading branch information
denniske committed Aug 18, 2023
1 parent 4ed1fdb commit abb7d19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/src/view/settings.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ export default function SettingsPage() {
setLoadingPushNotificationEnabled(true);
try {
if (pushNotificationsEnabled) {
if (__DEV__) {
if (auth && auth.profile_id) {
await setAccountProfile(accountId, { profile_id: auth.profile_id, steam_id: auth.steam_id });
}
await follow(accountId, following.map(p => p.profile_id), true);
return;
}

const token = await initPusher();

await setAccountPushTokenWeb(accountId, token);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-decorators": "^7.10.5",
"@expo-google-fonts/roboto": "^0.1.0",
"@pusher/push-notifications-web": "^1.1.0",
"@pusher/push-notifications-web": "",
"@react-native-async-storage/async-storage": "1.18.2",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/material-top-tabs": "^6.6.3",
Expand Down

0 comments on commit abb7d19

Please sign in to comment.