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

can't upload picture to chat, also the plus button work only once #101

Closed
liatprasa opened this issue Dec 16, 2024 · 2 comments
Closed

can't upload picture to chat, also the plus button work only once #101

liatprasa opened this issue Dec 16, 2024 · 2 comments

Comments

@liatprasa
Copy link

user can click on the plus button only once, and the picture he chose is not uploaded to the chat, then clicks on the plus button does nothing

can you help?

@nomyzs
Copy link
Contributor

nomyzs commented Dec 19, 2024

Hey @liatprasa

Could you provide more details about your setup? Specifically, the version of the library you're using, how you're launching the ChatWindow, and any related configuration details.

It seems likely that you are using an older version of the library (v2.3.4 or earlier) and not correctly passing the activity result to the ChatWindow. For reference, here's how the code should look:

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (!chatWindow.onActivityResult(requestCode, resultCode, data)) {
        super.onActivityResult(requestCode, resultCode, data);
    }
}

I was able to reproduce the behavior you described when this code was missing.

I would recommend upgrading to the latest version and setting up file sharing as outlined here.

If you're not ready to migrate to the latest version yet, ensuring that the activity result is passed to the ChatWindow as shown above should address the problem.

Let me know if you need further clarification!

@nomyzs
Copy link
Contributor

nomyzs commented Jan 17, 2025

I hope the information provided above resolved your issue and that the case can now be closed.

I'm also curious to know which version you were using and how you came to use the older version if it was new integration?

@nomyzs nomyzs closed this as completed Jan 17, 2025
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