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

[CHAT]{BUG]: ui-chat is not disconnecting from activity #1116

Open
sonu-glider opened this issue Nov 22, 2024 · 3 comments
Open

[CHAT]{BUG]: ui-chat is not disconnecting from activity #1116

sonu-glider opened this issue Nov 22, 2024 · 3 comments

Comments

@sonu-glider
Copy link

chatAdapter.disconnect() is not working.

need to stop chat but can't able to its working in background even left from the chat layout.

@sonu-glider sonu-glider changed the title ui-chat:1.0.0-beta.3 [CHAT]{BUG]: Ui-chat is not disconnecting from activity Nov 22, 2024
@sonu-glider sonu-glider changed the title [CHAT]{BUG]: Ui-chat is not disconnecting from activity [CHAT]{BUG]: ui-chat is not disconnecting from activity Nov 22, 2024
@ahammer
Copy link
Member

ahammer commented Nov 25, 2024

Thank you for using the Communication UI Library in public preview!

To help us reproduce and triage the issue effectively, could you please provide:

  1. What you are observing that indicates the chat is still running in the background.
  2. Any relevant logs or additional details.

Your input will help us address this promptly.

Best regards,
Adam Hammer

@sonu-glider
Copy link
Author

sonu-glider commented Dec 10, 2024 via email

@ahammer
Copy link
Member

ahammer commented Dec 25, 2024

Hi @sonu-glider

This indicates a bug between the internal state of the chat, and the view component that are displayed.

What is indicated by the logs/code is that when the Chat View is being disconnected (onDetachedFromWindow->tryPop) it needs access to the App Redux State. However, since you've already disposed the ChatAdapter it can no longer locate it via our Service Locator.

The solution to this issue at this time is to ensure that the Chat View's you are using are properly detached/disposed before calling disconnect().

Thank you again for trying the Public Preview of the Azure Communication Services UI Chat Library.

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

2 participants