cometchat / chat-sdk-android

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

[1.8.3] Parameter validation in constructor of TextMessage, MediaMessage,CustomMessage and CallMessage #8

Closed yadavmangesh closed 4 years ago

yadavmangesh commented 5 years ago

Describe the bug Validation for the required parameter in constructors is not working

To Reproduce Steps to reproduce the behavior: Pass Different parameters than required in the constructor

Expected behavior Compile-time error or Warning for passing the Wrong Parameter in the constructor

Actual behavior Error response in onError() method

Enviorment/Platfrom (please complete the following information):

Logs (Error Logs)

Additional context

Constructor Created was

   TextMessage textMessage=new TextMessage(UID,null, 
    CometChatConstants.CALL_TYPE_VIDEO,CometChatConstants.CATEGORY_MESSAGE);
adityagokula2210 commented 4 years ago

Done