Praveen S Rao 2.May.11 04:49 AM a Web browser Applications development 8.5.1 All Platforms
I wanted to create an application wherein the sametime message content gets altered before sending. Something, like i have typed "My name is xyz" in the chat box. I wanted 2 things to happen.
1. Alter the contents in the chat box itself based on some application logic. So, when i am typing something, the content in the chat box should get altered based on what i type. For eg. Whenever i type "a", it should get replaced by "ghi"; so the contents in the chat box should now be "My nghime is xyz"
2. Before sending the message, i wanted to alter whatever i have in the chat box right now - again based on some application logic - and then send across to the other participant.
Eg. All "y"'s to be removed. So, the other participant should receive : "M nghime is xz"
I am struggling to find api for this. I went through MessageHandlerAdapter, MessageHandlerPostCallback, MessageHandlerPreCallback in the ST SDK, but all these things help me do something when i am going through the life cycle but not change the actual message. Am i missing something? Please help. Thanks a lot in advance..