TReKiE / msnp-sharp

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

Bug : offline message #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
A is connected, but appears offline
B send an offline message to A
A appear online
B can't send messages to A any more

I finally understood where the problem came from.
A appears offline, so B uses OIMService.SendOIMMessage to send the message.
when A connects, he sends a direct message, but a conversation is alerady 
open, it seems that this conversation can't be used to send messages.

I made a hack in my code : every time I send an offline message, I check 
if the conversation is opened and I close it :

messenger.OIMService.SendOIMMessage(contact, messageText);
if (conversations.ContainsKey(contact) && conversations
[contact].Switchboard.IsSessionEstablished)
conversations[contact].Switchboard.Close();

What version of the product are you using? On what operating system?
Release 2.5.3 on Windows Vista

Please provide any additional information below.

first of all, I thought we could send offline messages with the 
Switchboard.SendTextMessage method.
Then I saw that I had to use OIMService.SendOIMMessage
It's strange : do we have to send an offline message when the contact is 
online but hidden ? I thought it would be the live messenger server's job 
to switch between direct messages and offline messages. But if the 
protocol is like that, it's ok :)

Original issue reported on code.google.com by adh...@gmail.com on 27 Jan 2009 at 1:39

GoogleCodeExporter commented 9 years ago
The server won't switch the OIMs.
Thanks for your reporting.

Original comment by freezing...@gmail.com on 29 Jan 2009 at 5:34

GoogleCodeExporter commented 9 years ago
Thank you for the answer, but did you look at the bug I mentionned ?

I managed to avoid the problem in my application, but the problem will be still 
here 
for the other users of MSNPSharp

(the bug is present in the DotMSNclient)

Original comment by adh...@gmail.com on 29 Jan 2009 at 2:00

GoogleCodeExporter commented 9 years ago
Hi,
I will fix it as soon as possible. I am very busy these days, sorry.

Original comment by freezing...@gmail.com on 29 Jan 2009 at 3:45

GoogleCodeExporter commented 9 years ago
No problem, I saw the issue was closed, and I thought you didn't read my 
complete 
message ;)

thank you for all your work

Original comment by adh...@gmail.com on 30 Jan 2009 at 8:54