We need some extra hands to help with extending a module we are using in our app. We use an opensource controller for messaging/chat which needs to also support chat bubbles that includes images being sent and recieved by users. This is the link to the controller on githhub: [login to view URL]
Currently, this controller support sending text messages, but we need to also support pictures to be sent within the speach/chat bubbles. This is almost the same as the imessage app on iphone sending a picutre to a contact. However, we do not require the animations that is currently iin place in imessage. the scope is only to extend this controller to achieve the described goal. We need a method/class extension that we can call to pass the picture so that it is shown in the chat bubble.
Out of scope: No need for implementing the actual file(image) transfer between users. Also, no need to actually create a way for the user to pick an image from camera or library on phone. We just need a method/class that can take an image and do the necessary work to display a chat bubble with image/picture inside.
To accommodate non-text messages, the best, most modular approach would be to provide a single datasource method, dataForRowAtIndexPath: that either returns a JSMessageData object that encapsulates what the data is (a string, an image, or a video).
Separate (optional) delegates would be best: shouldViewImageAtIndexPath: and shouldViewVideoAtIndexPath:. This will defer implementation to consumers of this control.