Closed pateljoel closed 3 years ago
@pateljoel Thanks for the question.
Displaying the loader on the bottom is not yet supported out of the box.
I can add new property loadingMorePosition = "top"|"bottom", and onYReachEnd to <MessageList />. Will it be ok for you?
@supersnager Yep, this is fine with me.
@supersnager Also, the other day I tried to join the Discord but the link was invalid.
Done in v1.4.0 This feature requires @chatscope/chat-ui-kit-styles@1.2.0
New <MessageList /> properties:
Example: https://chatscope.io/storybook/react/?path=/story/components-messagelist--loading-more-at-the-bottom
@pateljoel Please let me know if it works for you. Thanks also for the info about the problem with the link to the Discord :)
@supersnager I've tried this out and it looks and works good, but every time I load the message list, the onYReachEnd keeps getting called because the scrollbar knob is by default positioned at the bottom.
Is it possible to position the scrollbar knob at the top of the list instead of the bottom?
@pateljoel Have you tried to set autoScrollToBottom property of the <MessageList /> to false?
@supersnager I've used the prop already, and it still scrolls to the bottom.
@pateljoel Do you mean it scrolls down automatically after the first render? Or do you scroll down after adding more messages?
@supersnager sorry, it scrolls down automatically after the first render.
@pateljoel Ok thanks for the clarification. I will add a separate property for it.
Is there a way to have a message list's infinite scroll work in the similar way to a conversation lists infinite scroll?
Currently the MessageList's infinite scroll is at the top, I would like it at the bottom with a loading spinner like a twitter feed.
Is this possible?