ephemeraHQ / xmtp-inbox-ios

ARCHIVED: See the README for info about an alternative iOS app you can try.
4 stars 0 forks source link

Add persistence #44

Closed nakajima closed 1 year ago

nakajima commented 1 year ago

I think I've got all the existing functionality backed by the DB now. The DB should be encrypted with SQLCipher though right now the passphrase is always the same. There's some other cleanups that would be good to do but this PR is already pretty huge so I feel like it'd be good land what we've got so far.

nakajima commented 1 year ago

BTW, happy to go over all these changes on a call if that'd be easier.

nakajima commented 1 year ago

I'm guessing the long time is due to the loading of all the most recent messages, but maybe it'd be good to check out what's getting printed to the console? I can take a look at this before merging here.

nakajima commented 1 year ago

Ok, things are much faster now. Doing an ENS lookup for every conversation was a fun lil N+1. I also fixed the loading indicator always appearing.