MAINT-2567 FIXED Don't show any notification if message is actually empty.

meow-7.2.2
Mnikolenko ProductEngine 2015-04-21 11:48:51 +03:00
parent 2b9be2ac8c
commit 48bc511e59
1 changed files with 9 additions and 5 deletions

View File

@ -3789,11 +3789,15 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
}
}
LLSD msg_notify = LLSD(LLSD::emptyMap());
msg_notify["session_id"] = LLUUID();
msg_notify["from_id"] = chat.mFromID;
msg_notify["source_type"] = chat.mSourceType;
on_new_message(msg_notify);
if (mesg != "")
{
LLSD msg_notify = LLSD(LLSD::emptyMap());
msg_notify["session_id"] = LLUUID();
msg_notify["from_id"] = chat.mFromID;
msg_notify["source_type"] = chat.mSourceType;
on_new_message(msg_notify);
}
}
}