From 62e8a39e5244bcba6b5a6a6b1c05386e6735b17e Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 19 Dec 2007 20:00:36 +0000 Subject: [PATCH] Enable idle reporting. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4912 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../crowd/chat/client/ChatDirector.as | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/as/com/threerings/crowd/chat/client/ChatDirector.as b/src/as/com/threerings/crowd/chat/client/ChatDirector.as index 5a5403ea2..104c5783c 100644 --- a/src/as/com/threerings/crowd/chat/client/ChatDirector.as +++ b/src/as/com/threerings/crowd/chat/client/ChatDirector.as @@ -481,15 +481,16 @@ public class ChatDirector extends BasicDirector } // if they are idle, report that -// if (idletime > 0) { -// // adjust by the time it took them to become idle -// idletime += _cctx.getConfig().getValue( -// IDLE_TIME_KEY, DEFAULT_IDLE_TIME); -// var msg :String = MessageBundle.compose( -// "m.recipient_idle", MessageBundle.taint(target), -// TimeUtil.getTimeOrderString(idletime, TimeUtil.MINUTE)); -// displayFeedback(_bundle, msg); -// } + var idle :Number = idleTime.toNumber(); + if (idle > 0) { + // adjust by the time it took them to become idle + // TODO: implement + //idle += _cctx.getConfig().getValue(IDLE_TIME_KEY, DEFAULT_IDLE_TIME); + var rmsg :String = MessageBundle.compose( + "m.recipient_idle", MessageBundle.taint(target), + TimeUtil.getTimeOrderString(idle, TimeUtil.MINUTE)); + displayFeedback(_bundle, rmsg); + } }; _cservice.tell(_cctx.getClient(), target, message, new TellAdapter(failure, success)); }