cometchat / chat-sdk-android

Text Chat SDK for Android
https://www.cometchat.com
22 stars 12 forks source link

[1.8.3] Incorrect Text Message validation with Message Type MESSAGE_TYPE_IMAGE #7

Closed yadavmangesh closed 5 years ago

yadavmangesh commented 5 years ago

Describe the bug While Sending a text message with messageType MESSAGE_TYPE_IMAGE it shows: A file input is required for the message type image under category message instead of showing that text message requires MESSAGE_TYPE_TEXT as messageType

To Reproduce Steps to reproduce the behavior:

  1. Login with UID
  2. Send Text Message with messageType MESSAGE_TYPE_IMAGE

Expected behavior

Exception showing text message requires MESSAGE_TYPE_TEXT as messageType under category message

Actual behavior

A file input is required for the message type image under category message

Enviorment/Platfrom (please complete the following information):

Logs (Error Logs)

adityagokula2210 commented 5 years ago

Fixed