Fixed normal bug EXT-2776 (Notification toasts of group chat pop up when group chat is
open but not in focus). --HG-- branch : product-enginemaster
parent
abe3084db2
commit
4db25f9e02
|
|
@ -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"];
|
||||
|
|
|
|||
Loading…
Reference in New Issue