I'm working on an Android app, with QuickBlox SDK. While implementation of Private Chat, I'm setting the markable property of message to true by calling message.setMarkable(true)
on a QBChatMessage
object before sending a message.
Below is the processMessage
override function. Here the incoming QBChatMessage message
always has the markable
property as false
. Due to this, it doesn't allow the message to be 'read' using the privateChat.readMessage()
function.
@Override
public void processMessage(QBPrivateChat chat, QBChatMessage message) {
Log.w(TAG, "new incoming message: " + message);
message.setMarkable(true);
chatActivity.showMessage(message);
if (message.isMarkable()) {
try {
privateChat.readMessage(message.getId());
} catch (XMPPException e) {
} catch (SmackException.NotConnectedException e) {
}
}
}
Let me know what could be wrong here.
Thanks in advance.
This was fixed in SDK 2.2.2 2 months ago