Hi All
I am developing an Addin using C++ CLR.
Both a human and an addin will be sending messages to the recipient.
The problem I am seeing is:
The IncomingTextMessage handler will be called if the message arrives from a user, but
seems that the messages sent by SendTextMessage (from the addin) will not generate call to IncomingTextMessage handler.
Is there anything I am missing?
My code is ...
void OnOutgoingMessage(System:bject^ sender, OutgoingTextMessageEventArgs^ args)
{
....
if("/send" == args->TextMessage)
{// if the outgoing message was "/send" repress it and sent "Addin sending a message" instead
args->Cancel =
true;
m_client->SendTextMessage(
"Addin sending a message", args->UserTo);
}
....
}