()
| 166 | } |
| 167 | |
| 168 | async function loadRemoteConversations(): Promise<Conversation[]> { |
| 169 | const passphrase = keychainLoad(); |
| 170 | if (!passphrase || !existsSync(getIdentityPath())) { |
| 171 | return []; |
| 172 | } |
| 173 | |
| 174 | try { |
| 175 | const { encryptionKey, walletAddress } = resolveIdentity(passphrase); |
| 176 | return await pullConversations(walletAddress, encryptionKey); |
| 177 | } catch { |
| 178 | return []; |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | function loadSharedConversations(): DiscoveredConversation[] { |
| 183 | const dbPath = getDbPath(); |
no test coverage detected