Skip to content

Commit

Permalink
do the typescript side
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Sep 21, 2023
1 parent 4fa09ad commit 5f8434f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ export default class Conversations {
}

cancelStream() {
XMTPModule.unsubscribeFromConversations();
XMTPModule.unsubscribeFromConversations(this.client.address);
}

cancelStreamAllMessages() {
XMTPModule.unsubscribeFromAllMessages();
XMTPModule.unsubscribeFromAllMessages(this.client.address);
}
}

0 comments on commit 5f8434f

Please sign in to comment.