diff --git a/src/lib/adapters/waku/index.ts b/src/lib/adapters/waku/index.ts index 8270cdf3..cb2f55bb 100644 --- a/src/lib/adapters/waku/index.ts +++ b/src/lib/adapters/waku/index.ts @@ -276,9 +276,11 @@ export default class WakuAdapter implements Adapter { async startChat(address: string, peerAddress: string): Promise { const chatId = peerAddress - const user = await this.storageProfileToUser(chatId) + let user = await this.storageProfileToUser(chatId) if (!user) { - throw 'invalid user' + user = { + address: peerAddress, + } } const joined = true