ChatKit icon indicating copy to clipboard operation
ChatKit copied to clipboard

MessageInput inheritance

Open soommy12 opened this issue 4 years ago • 2 comments

Hi there!

Just wanted to ask if there is some elegant way to extend MessageInput class? I would like to add more buttons to the layout but I found that the init() method which is responsible for inflating is private. I could add my own method which will do inflating again with my own layout but that would be bad when it comes to performance.

Just to clarify what I want to achieve: something similar to iOS version of Whatsapp - I would like to show two buttons for audio/video and when the user starts typing hide them to show submit button.

Do you guys have some suggestions?

soommy12 avatar Apr 08 '20 08:04 soommy12

Did you find any solution or any elegant way to do that? if yes please can you share with me?

awaisabbasaa11 avatar Oct 08 '20 05:10 awaisabbasaa11

@awaisabbasaa11 Unfortunately, I didn't find one. I end up showing a dialogue with options when tapping the "plus" icon.

soommy12 avatar Oct 08 '20 11:10 soommy12