-
-
Notifications
You must be signed in to change notification settings - Fork 490
Question about fetch-messages event #313
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
Comments
|
Hi @antoine92190 , the thing is we need to stop the loader after messages has been loaded but if we set messagesLoaded to true the scroll will not work right? What are we missing? |
The loader should automatically disappear as soon as at least one message is added. You don't need to do anything to manage the central loader. |
Understood, i'll check my logic then. Thank you for you quick response! |
Please let me know if you solved it so we can close this issue. |
@antoine92190 Thanks for your help! But I cannot solve problem 1 with your solution. I already load 30+ messages initially, But the infinite message loading loop still not working: in my scenario, when my site route to the chatroom page, the chat page will automatically scorll up a little bit. When I scroll to the top of this room, it will show the loading icon but never load new messages again. It will only load once (when I first open this room). I never set This screenshot shows my first loading, the scrollbar automatically scroll up a little bit: |
Strange, would it be possible to have access to your project so I can reproduce and fix the issue? |
I will try to make a demo to see if I can let you access it! Thanks! |
@antoine92190 After I tired, is hard to make a demo for my scenario isolated with my project. :( But I can share my screen or something like that to let you remotely control or testing (via zoom or something like that), is that ok for you? |
@antoine92190 Fetch messages is called twice when i click on a chatroom is that a normal behaviour? |
@oxavibes I guess the first one if when you load the room, and the second one is automatically triggered to load more messages. You can check if the first one has |
@wzl778633 Can you first send me a video from the moment you load the app until the bug appears? |
@antoine92190 https://youtu.be/rCwExOOO7xE Here is the video for the bugs description :) |
@antoine92190 Fetch messages is called twice when i click on a chatroom. And both times |
Hello! Thanks for your work. This is a super project! I use socket to receive already formatted messages from the server and add them to the :messages="messages" property. |
Please use version 2.0.3, previous versions are not supported anymore. |
Thanks for the answer. But I have a new problem, when registering a component in the browser (in the console), an error occurs on register (); https://github.com/Morrowi/kabinet_kdm/blob/dev/src/components/BoardUser.vue#L280 } |
@Morrowi Please read the README file, you are not using the component correctly: https://github.com/antoine92190/vue-advanced-chat#usage |
Thank you for your time. https://github.com/Morrowi/kabinet_kdm/blob/dev/src/components/BoardUser.vue#L240 |
The |
Actually, I see you updated the version in the dev branch. I made it work on you branch, you need to:
|
@antoine92190 Thanks for helping me. I did everything as you wrote, but the result is the same. I'm already starting to go crazy |
Did you delete |
@antoine92190 Yes, I did it all. But the error is still the same |
Strange, I cloned your project and it works on my side. Which browser are you using? And which node version? |
chrom and safari |
I specified the details, but the problem remained. All changes to git |
Try to delete the whole project locally, and clone it again. If it works on my side it should work on your side. |
Thank you! For a long time! That helped! |
@crystal96 @wzl778633 @oxavibes Can any of you reproduce the issue with latest chat version |
Closing this due to inactivity. Please reopen if the issue still exists. |
Good afternoon chat single room and messages a lot what could it be? windows 11, last chrome "vue-advanced-chat": "^2.0.7", |
Firstly, really nice work for chat plugins, a big appreciate for this project.
But I’m a little bit lost with the documentation. Right now I want to figure out the core event fetch-messages, here is my code for the callback function:
What I want to do is to make an infinite message loading loop to imitate loading with backend data. Each time I scroll up will load 10 more random messages. But right now it will only load once (when the room is opened) and then it will show the loading icon forever and never trigger this event again no matter how I scroll up, did I missing something? I cannot find some useful information about this part So I want to know why and how to solve this.
Also, the user tag that I set (format I showed above) for random messages will always shows “@unknown” in the chat room. I didn’t find any documentation about user tags logic. Could you explain more about how this part works?
I will really appreciate your help!
The text was updated successfully, but these errors were encountered: