Set username provided by incoming P2P session data as IM floater title until we received the complete name data and also update typing notification properly

Tue, 09 Dec 2014 13:56:33 +0100

author
Ansariel
date
Tue, 09 Dec 2014 13:56:33 +0100
changeset 43046
233a0bf578cc
parent 43045
23e35ba70c6f
child 43047
a56111a080f7

Set username provided by incoming P2P session data as IM floater title until we received the complete name data and also update typing notification properly

indra/newview/fsfloaterim.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/fsfloaterim.cpp	Tue Dec 09 09:06:43 2014 +0100
     1.2 +++ b/indra/newview/fsfloaterim.cpp	Tue Dec 09 13:56:33 2014 +0100
     1.3 @@ -763,6 +763,8 @@
     1.4  
     1.5  	if ( im_session && im_session->isP2PSessionType())
     1.6  	{
     1.7 +		mTypingStart.setArg("[NAME]", im_session->mName);
     1.8 +		updateSessionName(im_session->mName, im_session->mName);
     1.9  		fetchAvatarName(im_session->mOtherParticipantID);
    1.10  	}
    1.11  	else
    1.12 @@ -856,6 +858,10 @@
    1.13  
    1.14  	updateSessionName(name, name);
    1.15  	mTypingStart.setArg("[NAME]", name);
    1.16 +	if (mOtherTyping)
    1.17 +	{
    1.18 +		setTitle((gSavedSettings.getBOOL("FSTypingChevronPrefix") ? "> " : "") + mTypingStart.getString());
    1.19 +	}
    1.20  	LL_DEBUGS("FSFloaterIM") << "Setting IM tab name to '" << name << "'" << LL_ENDL;
    1.21  	// </FS:Ansariel>
    1.22  }

mercurial