I'd rather prefer "Contact is typing..." than "Buddy is typing...".
This commit is contained in:
parent
b172d6fb20
commit
ea78353c09
|
@ -113,23 +113,23 @@ void
|
||||||
ChatWindow::ImMessage(BMessage* msg)
|
ChatWindow::ImMessage(BMessage* msg)
|
||||||
{
|
{
|
||||||
int32 im_what = msg->FindInt32("im_what");
|
int32 im_what = msg->FindInt32("im_what");
|
||||||
|
|
||||||
switch (im_what) {
|
switch (im_what) {
|
||||||
case IM_MESSAGE_RECEIVED:
|
case IM_MESSAGE_RECEIVED:
|
||||||
{
|
{
|
||||||
BString message = msg->FindString("body");
|
BString message = msg->FindString("body");
|
||||||
fReceiveView->AppendOtherMessage(message.String());
|
fReceiveView->AppendOtherMessage(message.String());
|
||||||
|
|
||||||
// Message received, clear status anyway
|
// Message received, clear status anyway
|
||||||
fStatus->SetText("");
|
fStatus->SetText("");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IM_CONTACT_STARTED_TYPING:
|
case IM_CONTACT_STARTED_TYPING:
|
||||||
fStatus->SetText("Buddy is typing ...");
|
fStatus->SetText("Contact is typing...");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IM_CONTACT_STOPPED_TYPING:
|
case IM_CONTACT_STOPPED_TYPING:
|
||||||
fStatus->SetText("");
|
fStatus->SetText("");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue