Fixed normal bug EXT-2776 (Notification toasts of group chat pop up when group chat is

open but not in focus).

--HG--
branch : product-engine
master
Andrew Dyukov 2009-12-08 21:15:28 +02:00
parent abe3084db2
commit 4db25f9e02
1 changed files with 7 additions and 0 deletions

View File

@ -116,6 +116,13 @@ void toast_callback(const LLSD& msg){
return;
}
// Skip toasting if we have open window of IM with this session id
LLIMFloater* open_im_floater = LLIMFloater::findInstance(msg["session_id"]);
if (open_im_floater && open_im_floater->getVisible())
{
return;
}
LLSD args;
args["MESSAGE"] = msg["message"];
args["TIME"] = msg["time"];