STORM-507 FIXED User that has sent p2p call invitation to other user, is not added to Recent tab

- Add the caller to the Recent List just after Incoming Call floater appears. Before recicpient accepted or rejected the call.
meow-7.2.2
paul_productengine 2011-01-31 19:47:50 +02:00
parent 64f153d547
commit 1a1d5f4c00
1 changed files with 9 additions and 0 deletions

View File

@ -2719,6 +2719,15 @@ void LLIMMgr::inviteToSession(
{
LLFloaterReg::showInstance("incoming_call", payload, FALSE);
}
// Add the caller to the Recent List here (at this point
// "incoming_call" floater is shown and the recipient can
// reject the call), because even if a recipient will reject
// the call, the caller should be added to the recent list
// anyway. STORM-507.
if(type == IM_SESSION_P2P_INVITE)
LLRecentPeople::instance().add(caller_id);
mPendingInvitations[session_id.asString()] = LLSD();
}
}