kythyria / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

question on TextMessageReceived #290

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I use the sender property in TextMessageArrivedEventArgs to get the remote 
contact who's sending the message whenever a new message arrives, and it's been 
working perfectly. When the owner sends out a message to a remote contact, I 
notice that a TextMessageReceived event is also raised. The sender property of 
the corresponding TextMessageArrivedEventArgs is the owner, which makes sense; 
but how do I get the remote contact in this case? I want to get the remote 
contact so that my messenger client can display properly all the messages an 
owner has sent out in other locations where he has logged in. 

Thanks.

Original issue reported on code.google.com by zhicheng...@gmail.com on 6 Sep 2011 at 3:24

GoogleCodeExporter commented 9 years ago
What version of the library are you using? It shouldn't raise that event when 
you send out a message.

Original comment by freezing...@gmail.com on 6 Sep 2011 at 4:15

GoogleCodeExporter commented 9 years ago
I'm using version 4.0.1.2414.

Is it then possible for my message client using MSNPSharp to know all the 
messages sent out by the owner in other logged-in locations?

Thanks.

Original comment by zhicheng...@gmail.com on 7 Sep 2011 at 5:22

GoogleCodeExporter commented 9 years ago
It is normal when you logged in multiple places. Each message will be 
received/sent by each place. So, you can track your messages sent/received at 
one place without typing.

If it is bot, you must check sender.

Original comment by hepha...@gmail.com on 7 Sep 2011 at 6:28

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
How do I track a sent message at a place when this message is sent out at 
another place? 

Original comment by zhicheng...@gmail.com on 7 Sep 2011 at 6:45

GoogleCodeExporter commented 9 years ago
if (e.Sender == YOU) 
    it is out;

Original comment by hepha...@gmail.com on 7 Sep 2011 at 7:03

GoogleCodeExporter commented 9 years ago
Thanks for replying. Yeah, what I want to do (and not sure how to) is to 
actually to track who the receiver is ...

Original comment by zhicheng...@gmail.com on 7 Sep 2011 at 7:51

GoogleCodeExporter commented 9 years ago
Good point.

Currently there is no way who is sender/receiver. 
I have just added RoutingInfo property to MessageArrivedEventArgs.
See r2527. It will be in v4.0.3.

Original comment by hepha...@gmail.com on 7 Sep 2011 at 9:14

GoogleCodeExporter commented 9 years ago
Great. Thanks!

Original comment by zhicheng...@gmail.com on 8 Sep 2011 at 12:30

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 11 Sep 2011 at 8:50