From 5f8434fb571c7331c0dc2a7ec941148d6d9c532d Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Thu, 21 Sep 2023 12:52:35 -0700 Subject: [PATCH] do the typescript side --- src/index.ts | 8 ++++---- src/lib/Conversations.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index dc7bdfd50..22ed13739 100644 --- a/src/index.ts +++ b/src/index.ts @@ -228,12 +228,12 @@ export async function subscribeToMessages( return await XMTPModule.subscribeToMessages(clientAddress, topic); } -export function unsubscribeFromConversations() { - return XMTPModule.unsubscribeFromConversations(); +export function unsubscribeFromConversations(clientAddress: string) { + return XMTPModule.unsubscribeFromConversations(clientAddress); } -export function unsubscribeFromAllMessages() { - return XMTPModule.unsubscribeFromAllMessages(); +export function unsubscribeFromAllMessages(clientAddress: string) { + return XMTPModule.unsubscribeFromAllMessages(clientAddress); } export async function unsubscribeFromMessages( diff --git a/src/lib/Conversations.ts b/src/lib/Conversations.ts index 0e471521a..ce99fb821 100644 --- a/src/lib/Conversations.ts +++ b/src/lib/Conversations.ts @@ -92,10 +92,10 @@ export default class Conversations { } cancelStream() { - XMTPModule.unsubscribeFromConversations(); + XMTPModule.unsubscribeFromConversations(this.client.address); } cancelStreamAllMessages() { - XMTPModule.unsubscribeFromAllMessages(); + XMTPModule.unsubscribeFromAllMessages(this.client.address); } }