Revision
15327
Author
gmaruzz
Date
2009-11-02 18:52:52 -0600 (Mon, 02 Nov 2009)

Log Message

skypiax: when sending a chatmessage, do not report it as an incoming message (eg: do not report the messages sent by myself)

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c (15326 => 15327)


--- freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	2009-11-02 23:58:30 UTC (rev 15326)
+++ freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	2009-11-03 00:52:52 UTC (rev 15327)
@@ -366,7 +366,9 @@
 						ERRORA("why chatmessage %s was not found in the chatmessages array??\n", SKYPIAX_P_LOG, id);
 					}else {
 						DEBUGA_SKYPE("CHATMESSAGE %s is in position %d in the chatmessages array, type=%s, id=%s, chatname=%s, from_handle=%s, from_dispname=%s, body=%s\n", SKYPIAX_P_LOG, id, i, tech_pvt->chatmessages[i].type, tech_pvt->chatmessages[i].id, tech_pvt->chatmessages[i].chatname, tech_pvt->chatmessages[i].from_handle, tech_pvt->chatmessages[i].from_dispname, tech_pvt->chatmessages[i].body);
-						incoming_chatmessage(tech_pvt, i);
+						if(strcmp(tech_pvt->chatmessages[i].from_handle, tech_pvt->skype_user)){ //if the message was not sent by myself
+							incoming_chatmessage(tech_pvt, i);
+						}
 					}
 
 				}