Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IsTyping props and component in react-chat-engine-advanced #210

Open
Madhavkabra opened this issue Jan 1, 2024 · 0 comments
Open

Comments

@Madhavkabra
Copy link

Madhavkabra commented Jan 1, 2024

Hi there @alamorre / @dhavelock , I'm trying to show username is typing message in react-chat-engine-advanced chat list on typing in message input field, But I'm not able to achieve this. I've logged chatProps returned from useMultiChatLogic hook but there is no any props which can show typing state with user details and there is no any documents for the same.

This feature is available in react-chat-engine

Here is my code

const chatProps = useMultiChatLogic(projectId, username, secret);

return (
    <>
      <MultiChatSocket
        {...chatProps}
        onConnect={() => scrollToBottom()}
      />
      <MultiChatWindow
        {...chatProps}
        renderChatFeed={(chatFeedProps) => (
          <ChatFeed
            {...chatFeedProps}
            activeChatId={chatProps.activeChatId}
            messagesEndRef={messagesEndRef}
            setEditorRef={setEditorRef}
            scrollToBottom={scrollToBottom}
          />
        )}
        onMessageFormSubmit={handleSendMessage}
      />
    </>
  );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant