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

Channel List is not updated if a message is received in a newly created channel #1174

Closed
1 task done
Ayush-gupta-josh opened this issue May 23, 2022 · 15 comments
Closed
1 task done

Comments

@Ayush-gupta-josh
Copy link

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

iOS, Android, Web

What version are you using?

4.1.0

What happened?

When a message is received in a newly created channel, the channel list is not updated immediately, I have to manually refresh the page for the new channel to reflect in the channel list. I'm using PagedValueListenableBuilder along with StreamChannelListController

Steps to reproduce

1. Open the chat application using multiple users in different browsers such that they have never sent any message to each other
2. Try sending the message from User A to User B by creating a new channel
3. The channel list at User B's end won't get updated immediately.

Supporting info to reproduce

No response

Relevant log output

No response

Flutter analyze output

No response

Flutter doctor output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Ayush-gupta-josh Ayush-gupta-josh added the bug Something isn't working label May 23, 2022
@imtoori
Copy link
Contributor

imtoori commented May 31, 2022

hey @Ayush-gupta-josh could you show me how do you create the channel?

@github-actions
Copy link

github-actions bot commented Jun 7, 2022

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.

@github-actions github-actions bot closed this as completed Jun 7, 2022
@Ayush-gupta-josh
Copy link
Author

@imtoori Channel is created on the backend, not on the frontend we use a python client to create a channel.

@adityathakur8929
Copy link

@imtoori

This is how channel is being created at the backend, where stream_chat_client is initialized using
stream-chat package for python and its version is 4.3.0

channel = stream_chat_client.channel(
        "messaging",
        str(member.id),
        data=dict(members=channel_members),
    )
    channel.create(user_id=STREAM_BOT_USER_ID)
    return channel

@imtoori
Copy link
Contributor

imtoori commented Jul 19, 2022

sorry for the delay guys, I'll take a look at it now

@imtoori
Copy link
Contributor

imtoori commented Jul 19, 2022

I'm trying to reproduce this, but I'm not succeeding
Also, I'm getting the channel as soon as I create it, I don't even need to actually send a message.
Do you have anything you think can help me reproduce it? I've been trying using our sample app with two different users and it's working fine

@github-actions
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.

@adityathakur8929
Copy link

Hi, I am adding the video for the issue that has been reproduced on stream flutter demo app:
https://drive.google.com/file/d/1t7ZZmPHU72FAtAUk_DBUcULeqR-nKihm/view?usp=sharing

Steps to reproduce:

  1. Open the stream chat application for an admin stream user and navigate to channel list
  2. Create a new user from the backend sdk
  3. Refresh the channel list on UI

@xsahil03x
Copy link
Contributor

Thanks @adityathakur8929, I will take a look today

@adityathakur8929
Copy link

Also the stream demo app repo link on which the issue is persists is:
https://github.com/GetStream/flutter-samples/tree/main/packages/stream_chat_v1

@xsahil03x xsahil03x reopened this Aug 8, 2022
@xsahil03x
Copy link
Contributor

@adityathakur8929 I tried reproducing it but failed again.

Screen.Recording.2022-08-08.at.5.04.34.PM.mov

@xsahil03x xsahil03x removed the bug Something isn't working label Aug 8, 2022
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.

@github-actions github-actions bot closed this as completed Aug 8, 2022
@adityathakur8929
Copy link

Okay, I have gone through the video the channel list gets updated in real time if a new channel is added and user is a member of that channel. But if a new channel is added and the user is not a member of that channel but user's role is admin on stream then user has to refresh the list once.

@xsahil03x xsahil03x reopened this Aug 9, 2022
@github-actions
Copy link

github-actions bot commented Aug 9, 2022

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.

@xsahil03x
Copy link
Contributor

@adityathakur8929
Unfortunately, our backend do not send channel.created events to WebSockets due to which this isn't possible at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

4 participants