diff --git a/lib/src/main/java/io/ably/lib/types/BaseMessage.java b/lib/src/main/java/io/ably/lib/types/BaseMessage.java index b09142e57..e2d0168b9 100644 --- a/lib/src/main/java/io/ably/lib/types/BaseMessage.java +++ b/lib/src/main/java/io/ably/lib/types/BaseMessage.java @@ -131,11 +131,7 @@ public void encode(ChannelOptions opts) throws AblyException { encoding = ((encoding == null) ? "" : encoding + "/") + "utf-8"; } } else if(!(data instanceof byte[])) { - if (opts != null && opts.encrypted) { throw AblyException.fromErrorInfo(new ErrorInfo("Invalid message data or encoding", 400, 40013)); - } else { - Log.e(TAG, "Message data must be either `byte[]`, `String` or `JSONElement`; implicit coercion of other types to String is deprecated and throws from v.0.9 on.\nPlease check the documentation (https://www.ably.io/documentation/realtime/types#message)."); - } } } if (opts != null && opts.encrypted) {