Zendesk ChatSDK blacklists the user's initial message
Publication le 28 juil. 2023
Hi,
We are currently using Zendesk ChatSDK for our mobile applications. But we have an issue in our Android app. The issue is that the initial message sent by the user to start the chat is blacklisted by the SDK and the message does not show up again when the user closes the chat screen and then reopens. When we looked at the SDK source code, we saw a code block that blacklists the user's initial message on purpose. This behavior breaks our chat experience. We are wondering what reason led you to make this decision. Also, we are looking for ways to disable it if possible.
The following code block is in the ChatModel class. ChatSDK version is 3.3.6.
private void sendInitialMessage(String initialMessage) {
if (hasLength(initialMessage)) {
ChatLog.Message message = chatProvider.sendMessage(initialMessage);
chatLogBlacklister.blacklist(message);
}
}
These 2 screenshots may make things clear for you
Thanks in advance
Anı
0
4 commentaire
Anı
Firstly, thanks for your interest Greg. I cloned the project in the documentation you sent, and used the "chat_v2_sample" app to reproduce the issue. I can see the same behavior there. The user's initial message does not show up again after the user restarts the app. I'll list the steps I followed to reproduce the issue:
* Cloned the repo
* Updated CHAT_ACCOUNT_KEY in the "chat_v2_sample" app with our key
* Updated MainActivity with the following code to make the configuration the same as our app's.
* Connected to chat and saw the bot's welcome message
* Sent the initial message and then saw the bot's message saying calling an agent
* After the agent joined, the agent sent their initial message
* I sent my next message and then killed the app
* When I opened the chat again, there were only 2 messages. The first one was the agent's initial message and the other one was my second message.
I hope these steps work for you in reproducing the issue as well.
0
Greg Katechis
0
Anı
Hey Greg, I just updated the ChatSDK to "3.4.0" and there is no change in the behavior. In addition, I can still see the code block I shared above in the source code of the last version of the SDK.
0
Greg Katechis
0
Se connecter pour laisser un commentaire.