esoftplay 0.0.115-j → 0.0.115-k
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/user/class.ts +4 -4
- package/package.json +1 -1
package/modules/user/class.ts
CHANGED
|
@@ -59,11 +59,11 @@ export default class eclass {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
static delete(): Promise<void> {
|
|
62
|
-
return new Promise((r) => {
|
|
62
|
+
return new Promise(async(r) => {
|
|
63
63
|
Notifications.setBadgeCountAsync(0)
|
|
64
|
-
state.
|
|
65
|
-
AsyncStorage.removeItem("user_notification");
|
|
66
|
-
AsyncStorage.removeItem("user");
|
|
64
|
+
state.reset()
|
|
65
|
+
await AsyncStorage.removeItem("user_notification");
|
|
66
|
+
await AsyncStorage.removeItem("user");
|
|
67
67
|
new UserData().deleteAll()
|
|
68
68
|
if (esp.config('notification') == 1) {
|
|
69
69
|
UserClass.pushToken()
|