TReKiE / msnp-sharp

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

ConversationCreated was invoked 2 times. #181

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
Messenger.ConversationCreated += new 
EventHandler<ConversationCreatedEventArgs>(Messenger_ConversationCreated);
Conversation conv = Messenger.CreateConversation();
conv.Invite("ouyijian@live.cn", ClientType.PassportMember);

private void Messenger_ConversationCreated(object sender, 
ConversationCreatedEventArgs e)
        {

            lock (_lock_2)
            {
                e.Conversation.TextMessageReceived += new 
EventHandler<TextMessageEventArgs>(Conversation_TextMessageReceived);
e.Conversation.ContactJoined += new EventHandler<ContactEventArgs>
(Conversation_ContactJoined);
            }
        }

What is the expected output? What do you see instead?
Messenger_ConversationCreated was invoked 2 times.first time,e.Initiator 
as class Messenger,second time,e.Initiator as class Conversation.
And I expect Conversation_ContactJoined would be invoked,but it's not.
What's problem here?
Thanks a lot!

What version of the product are you using? (MSNPSharp, OS, Mono etc.)
MSNPSharp_301_release,Windows 7,Visual Studio 2008 pro.
Is your code check out from SVN or download from our download site?
from download site.

Please provide any additional information below:

Original issue reported on code.google.com by OuICh...@hotmail.com on 2 Feb 2010 at 3:06

GoogleCodeExporter commented 9 years ago
Please use a svn client check out the code in branches/MSNPSHARP_30_STABLE 
folder 
and see whether this issue still exists.

Original comment by freezing...@gmail.com on 3 Feb 2010 at 8:49

GoogleCodeExporter commented 9 years ago

Original comment by freezing...@gmail.com on 5 Feb 2010 at 11:16

GoogleCodeExporter commented 9 years ago
MSNPSHARP_30_STABLE is ok,thank you verymuch!

Original comment by OuICh...@hotmail.com on 9 Feb 2010 at 5:38

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 20 Sep 2010 at 10:44