Updated statuses accordingly with the recent Caya changes.

This commit is contained in:
barrett 2012-05-15 17:51:03 +00:00
parent aa93e9ad96
commit ee0669cfd1
3 changed files with 4 additions and 3 deletions

View File

@ -336,7 +336,7 @@ MSNP::Process(BMessage* msg)
if (fLogged) if (fLogged)
fMainConnection->setState(MSN::STATUS_AWAY, fClientID); fMainConnection->setState(MSN::STATUS_AWAY, fClientID);
break; break;
case CAYA_EXTENDED_AWAY: case CAYA_CUSTOM_STATUS:
break; break;
case CAYA_DO_NOT_DISTURB: case CAYA_DO_NOT_DISTURB:
@ -1242,6 +1242,7 @@ void MSNP::buddyChangedPersonalInfo(MSN::NotificationServerConnection* conn, MSN
BMessage msg(IM_MESSAGE); BMessage msg(IM_MESSAGE);
msg.AddInt32("im_what", what); msg.AddInt32("im_what", what);
msg.AddString("id", fromPassport.c_str()); msg.AddString("id", fromPassport.c_str());
msg.AddString("protocol", kProtocolSignature);
msg.AddString("message", pInfo.PSM.c_str()); msg.AddString("message", pInfo.PSM.c_str());
fServerMsgr->SendMessage(&msg); fServerMsgr->SendMessage(&msg);
} }

View File

@ -686,7 +686,7 @@ JabberHandler::_GlooxStatusToCaya(gloox::Presence::PresenceType type)
case gloox::Presence::Away: case gloox::Presence::Away:
return CAYA_AWAY; return CAYA_AWAY;
case gloox::Presence::XA: case gloox::Presence::XA:
return CAYA_EXTENDED_AWAY; return CAYA_CUSTOM_STATUS;
case gloox::Presence::DND: case gloox::Presence::DND:
return CAYA_DO_NOT_DISTURB; return CAYA_DO_NOT_DISTURB;
case gloox::Presence::Unavailable: case gloox::Presence::Unavailable:

View File

@ -188,7 +188,7 @@ Yahoo::Process(BMessage * msg)
fYahoo->SetAway(YAHOO_STATUS_NOTATDESK, NULL); fYahoo->SetAway(YAHOO_STATUS_NOTATDESK, NULL);
} }
break; break;
case CAYA_EXTENDED_AWAY: case CAYA_CUSTOM_STATUS:
break; break;
case CAYA_DO_NOT_DISTURB: case CAYA_DO_NOT_DISTURB: