PrimalHQ / primal-ios-app

Primal's iOS app for Nostr.
https://primal.net/downloads
MIT License
40 stars 9 forks source link

Sign out doesn't clear my data properly occasionally #90

Closed AleksandarIlic closed 1 week ago

AleksandarIlic commented 1 year ago

Describe the bug

Sign out doesn't clear my data properly occasionally if sign in back fast enough.

Steps to reproduce

1) Sign in with your normal account and use the app. 2) Signout and immediatelly sign in with nsec which doesn't have metadata. This one is used in the video nsec16nksmlzruy2ccnmsrapmg29cjxkfcakhefpd3j4m4m0qv3unxpyshde2le

App is still showing old user as logged in. See 1st video.

Expected behavior

App should show the new user data without any traces of previous user.

Environment

iPhone XS.

Additional context

https://github.com/PrimalHQ/primal-ios-app/assets/1103119/18af7b82-df15-428d-a0e0-c67d10eba3b8

https://github.com/PrimalHQ/primal-ios-app/assets/1103119/7bab874b-c2dc-4b2f-b977-0c3599b6a4e3