Added IM_CONTACT_GONE message, for contacts leaving the chat.
This commit is contained in:
parent
46c1a78e54
commit
f8304f0c27
|
@ -59,11 +59,14 @@ enum im_what_code {
|
|||
//! Contact stopped typing
|
||||
IM_CONTACT_STOPPED_TYPING = 24,
|
||||
|
||||
//! Contact gone
|
||||
IM_CONTACT_GONE = 25,
|
||||
|
||||
//! User started typing
|
||||
IM_USER_STARTED_TYPING = 25,
|
||||
IM_USER_STARTED_TYPING = 26,
|
||||
|
||||
//! User stopped typing
|
||||
IM_USER_STOPPED_TYPING = 26,
|
||||
IM_USER_STOPPED_TYPING = 27,
|
||||
|
||||
/*
|
||||
* Messages related to contact changes.
|
||||
|
|
|
@ -130,6 +130,11 @@ ChatWindow::ImMessage(BMessage* msg)
|
|||
case IM_CONTACT_STOPPED_TYPING:
|
||||
fStatus->SetText("");
|
||||
break;
|
||||
case IM_CONTACT_GONE:
|
||||
fStatus->SetText("Contact closed the chat window!");
|
||||
snooze(10000);
|
||||
fStatus->SetText("");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Ŝarĝante…
Reference in New Issue