MessageKit icon indicating copy to clipboard operation
MessageKit copied to clipboard

Number of messages in thread

Open agatap2 opened this issue 4 years ago • 4 comments

Hi. In my chat, messages may have other messages in their thread and I will display them on long clicking on the parent message. What I need is to show the number of messages in a thread on the main chat page. This could look like the number of unread messages in the chat list view, but I don't mind any simpler solution.

agatap2 avatar Nov 18 '21 15:11 agatap2

threads

agatap2 avatar Nov 18 '21 15:11 agatap2

Hi, the library currently does not support threading beyond simple one already in your screenshot. A PR adding such support is welcome.

mtangoo avatar Nov 19 '21 07:11 mtangoo

So it's not possible to add some extra TextView under message bubble, where I could write number off messages in thread?

agatap2 avatar Nov 20 '21 11:11 agatap2

You will need to create your own ViewHolder as well as extend the XML file with your custom widgets. Take a look at the docs and scroll near the bottom where the topic is discussed: https://github.com/hosannahighertech/MessageKit/blob/master/docs/message_list.md

Also check samples. They are very helpful!

mtangoo avatar Nov 20 '21 16:11 mtangoo