CHUI-932 FIXED Restore previous text only if there is no gesture.

meow-7.2.2
Mnikolenko ProductEngine 2013-04-10 19:39:56 +03:00
parent 0b41fd503b
commit 2aca9b39d4
1 changed files with 4 additions and 2 deletions

View File

@ -568,7 +568,10 @@ void LLFloaterIMNearbyChat::sendChat( EChatType type )
if (0 == channel)
{
// discard returned "found" boolean
LLGestureMgr::instance().triggerAndReviseString(utf8text, &utf8_revised_text);
if(!LLGestureMgr::instance().triggerAndReviseString(utf8text, &utf8_revised_text))
{
utf8_revised_text = utf8text;
}
}
else
{
@ -582,7 +585,6 @@ void LLFloaterIMNearbyChat::sendChat( EChatType type )
if (!utf8_revised_text.empty())
{
// Chat with animation
utf8_revised_text = utf8text;
sendChatFromViewer(utf8_revised_text, type, TRUE);
}
}