Disconnecting from typing listeners via the function returned from getTyping does not appear to work. The old CB will still receive events.
// Stop watching the old channel
if (this.currentChannelStopTypingUpdatesDisconnectFunction) {
console.log('disconnecting existing handler')
this.currentChannelStopTypingUpdatesDisconnectFunction();
}
// Watch only the new channel
this.currentChannelStopTypingUpdatesDisconnectFunction = channel.getTyping((typing) => {
console.log('got typing events');
});
Disconnecting from typing listeners via the function returned from
getTyping
does not appear to work. The old CB will still receive events.To reproduce: