You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// VERSION: @pubnub/chat 0.11.3
const draft = channel.createMessageDraftV2({
userSuggestionSource: 'channel',
});
draft.addChangeListener((state: MessageDraftState) => {
console.log('ON DRAFT CHANGE', state);
});
draft.update('Any text');
// This will yield an exception with message: Cannot read property 'tg' of undefined
When i wired up a V2 message draft, attach a changeListener and then try to update the draft, an exception is thrown. If i don't attach a changeListener, there is no exception.
The text was updated successfully, but these errors were encountered:
When i wired up a V2 message draft, attach a changeListener and then try to update the draft, an exception is thrown. If i don't attach a changeListener, there is no exception.
The text was updated successfully, but these errors were encountered: