apply a possible fix for user logout

This commit is contained in:
ammarahm-ed
2021-05-24 15:50:02 +05:00
parent 87d48a263c
commit 457c160f7d
23 changed files with 177 additions and 76 deletions

View File

@@ -22,7 +22,7 @@ import {
} from '../../services/EventManager';
import Navigation from '../../services/Navigation';
import Sync from '../../services/Sync';
import { editing, toTXT } from '../../utils';
import { doInBackground, editing, toTXT } from '../../utils';
import {
ACCENT,
COLOR_SCHEME,
@@ -659,7 +659,7 @@ export const ActionSheetComponent = ({
<TouchableOpacity
activeOpacity={0.9}
testID={notesnook.ids.dialogs.actionsheet.sync}
onPress={async () => await Sync.run('local')}
onPress={async () => await doInBackground(()=>Sync.run('local'))}
style={{
borderColor: colors.accent,
paddingHorizontal: 5,