Closed nakajima closed 1 year ago
BTW, happy to go over all these changes on a call if that'd be easier.
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.
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.
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.