Author Message
alikumru
Joined: Dec 6, 2017
Messages: 11
Offline
Hello,

I tried to remove message from conversation list, but the method id deleting only from table so when i refresh the page message appears again. How can i solve this problem i could not find any other method.The method which i use to remove conversations is:

_removeConversation: function (conversations) {
conversations.forEach(function (conversation) {
var id = conversation.getId();

this._messagingView.removeConversationFromList(id);

delete this._conversationsArray[id];
}.bind(this));
}

Thanks for reply.
lfarias
Joined: Oct 7, 2019
Messages: 46
Offline
Hello alikumru, we are working to find the best answer to your question.

Our apologies for the delay, we will get back to you soon.

Thanks,
Avaya DevConnect support team
gmolinari.avaya.com_deprecated
Joined: Oct 14, 2019
Messages: 1
Offline
Hi alikumru, Our apologies for the delay.
For what you're trying to implement you can use the removeConversation method from the messagin API which removes the conversation from the DataSet:
https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/api_refs/AvayaClientServices/AvayaClientServices.Services.Messaging.Messaging.html#removeConversation

Or you can use the method removeMessage from the conversation API wich removes only a specific message:
https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/api_refs/AvayaClientServices/AvayaClientServices.Services.Messaging.Conversation.html#removeMessage

Please let me know if you've been able to resolve your issue.
Thanks,
Avaya DevConnect support team.
Go to:   
Mobile view