diff options
author | maxim@mnikolenko <maxim@mnikolenko> | 2014-03-14 12:21:25 +0200 |
---|---|---|
committer | maxim@mnikolenko <maxim@mnikolenko> | 2014-03-14 12:21:25 +0200 |
commit | 09d1c27d4f78c78d949b6a3d896d6f58df2dfc06 (patch) | |
tree | 2366f6ff31289a27092bef9e9fb2db272f17eb60 /indra/newview/llviewermessage.cpp | |
parent | cb91708332b8b8ddfe27808602ec5f43f11c24c2 (diff) |
MAINT-3822 FIXED Show busy mode message only once for each im session.
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rwxr-xr-x | indra/newview/llviewermessage.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index df5c7d5c2e..160f924f3f 100755 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -2409,10 +2409,6 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) && from_id.notNull() //not a system message && to_id.notNull()) //not global message { - // return a standard "do not disturb" message, but only do it to online IM - // (i.e. not other auto responses and not store-and-forward IM) - - send_do_not_disturb_message(msg, from_id, session_id); // now store incoming IM in chat history @@ -2433,6 +2429,15 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) region_id, position, true); + + if (!gIMMgr->isDNDMessageSend(session_id)) + { + // return a standard "do not disturb" message, but only do it to online IM + // (i.e. not other auto responses and not store-and-forward IM) + send_do_not_disturb_message(msg, from_id, session_id); + gIMMgr->setDNDMessageSent(session_id, true); + } + } else if (from_id.isNull()) { |