Java sdk message callback not trigger


#1

hello guys any help with java sdk !

room.subscribeRoomMessageEvent(new SubscribeListener() {
@Override
public void onSubscribe(Boolean isSubscribed, String subId) {
if (isSubscribed) {
Log.d("chat-log", "subscribed to room successfully");
}
}
}, new MessageListener.SubscriptionListener() {
@Override
public void onMessage(String roomId, RocketChatMessage message) {
Log.d("chat-log","new message!!!!!");
}
});

subscribed to room successfully this event is triggered fine
and i can see the new messages in the console
but not reaching onMessage callback