Help - Search - Members - Calendar
Full Version: no leaving chat notification?
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
ctter2006
in API, there is notification when user starts a Skype chat but it seems NO notification when he/she leaves chat. How to solve this problem?

The purpose is to calculate the chat duration.

Thank you in advance if you can help with this!!!
merton_a
QUOTE(ctter2006 @ Fri May 11 2007, 05:10) [snapback]393193[/snapback]

in API, there is notification when user starts a Skype chat but it seems NO notification when he/she leaves chat. How to solve this problem?

The purpose is to calculate the chat duration.

Thank you in advance if you can help with this!!!


From the discussion I've had with Rocketman in http://forum.skype.com/index.php?showtopic=82342 - the only time you will get notification when somebody leaves a chat is if it's a Multi-person chat i.e. >2 people. Otherwise, it's apparently not necessary to be told [removes tongue from cheek]

[Inspiration strikes] I wonder if it's possible to flag a chat as a multi-chat, without actually having >2 people in it - this is an idea I've just had, so I'll investigate it a bit...

HTH smile.png

Andrew
ctter2006
QUOTE(merton_a @ Fri May 11 2007, 07:14) [snapback]393219[/snapback]

From the discussion I've had with Rocketman in http://forum.skype.com/index.php?showtopic=82342 - the only time you will get notification when somebody leaves a chat is if it's a Multi-person chat i.e. >2 people. Otherwise, it's apparently not necessary to be told [removes tongue from cheek]

[Inspiration strikes] I wonder if it's possible to flag a chat as a multi-chat, without actually having >2 people in it - this is an idea I've just had, so I'll investigate it a bit...

HTH smile.png

Andrew


Do you find a way to mark 2 people chat as multi-chat?
TheUberOverlord
QUOTE(ctter2006 @ Thu May 10 2007, 23:10) [snapback]393193[/snapback]

in API, there is notification when user starts a Skype chat but it seems NO notification when he/she leaves chat. How to solve this problem?

The purpose is to calculate the chat duration.

Thank you in advance if you can help with this!!!


Are you using the API or Skype4COM lib?

cmeLeft for Skype4COm lib:

https://developer.skype.com/Docs/Skype4COML...ChatMessageType

Leave Reason for API:

https://developer.skype.com/Docs/ApiDoc/GET_CHATMESSAGE

You should Check these. I have not used them, but they are documented.
merton_a
QUOTE(TheUberOverlord @ Tue May 22 2007, 01:35) [snapback]397734[/snapback]

Are you using the API or Skype4COM lib?

cmeLeft for Skype4COm lib:

https://developer.skype.com/Docs/Skype4COML...ChatMessageType

Leave Reason for API:

https://developer.skype.com/Docs/ApiDoc/GET_CHATMESSAGE

You should Check these. I have not used them, but they are documented.



Yes, but you don't get an event unless it's a multi-chat, so there's nothing to indicate that the other paty has left. The problem is that they don't get removed from the chat, so you can still send messages even after theyve gone...

(unless something's changed recently - I've been Away for a while... smile.png )

Andrew
TheUberOverlord
QUOTE(merton_a @ Sat May 26 2007, 22:01) [snapback]399820[/snapback]

Yes, but you don't get an event unless it's a multi-chat, so there's nothing to indicate that the other paty has left. The problem is that they don't get removed from the chat, so you can still send messages even after theyve gone...

(unless something's changed recently - I've been Away for a while... smile.png )

Andrew


What do you get for a "Count" of the people in the chat, when it is nota multichat and the other person leaves?
merton_a
QUOTE(TheUberOverlord @ Sun May 27 2007, 12:05) [snapback]399871[/snapback]

What do you get for a "Count" of the people in the chat, when it is nota multichat and the other person leaves?


Again, the big delay before I come back to check the forums - sorry!

Using Skype4COM and my application, I just tried this with one Vista m/c running Skype V 3.1.0.144, and one running V3.2.0.163, and it now seems to work. I started a chat between the two users, and one left - both m/c's received the "Left chat" event correctly, and the Count (at both ends!) was reduced to 1.

I can only assume that something has been upgraded on the chat servers, if there is such a thing, since I am certain it never used to do this!

Seems the problem is now solved when using Skype4Com.

However, unless you are in a multi-chat, there is no "Leave Chat" option on the Skype GUI - I only get these events because I am calling Leave() through the API (I assume). Closing the Chat window doesn't make me leave the chat.

I think there should be an option on the GUI, just like there is for a multi-chat...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.