onConversationRemoved
Usage
const creatorAddress = '0x...';
const conversationHash = '0x...';
// Listen to all conversations removed by the specified sender
chat.onConversationRemoved(creatorAddress, null, (sender, conversationHash) => {
console.log(sender);
console.log(conversationHash);
});
// Listen to a specific conversation removed by any sender
chat.onConversationRemoved(null, conversationHash, (sender, conversationHash) => {
console.log(sender);
console.log(conversationHash);
});
// Listen to any conversation removal events
chat.onConversationRemoved(null, null, (sender, conversationHash) => {
console.log(sender);
console.log(conversationHash);
});Stop watching
Returns
Parameters
sender
conversationHash
callback
Last updated
