Enable idle reporting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4912 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -481,15 +481,16 @@ public class ChatDirector extends BasicDirector
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if they are idle, report that
|
// if they are idle, report that
|
||||||
// if (idletime > 0) {
|
var idle :Number = idleTime.toNumber();
|
||||||
// // adjust by the time it took them to become idle
|
if (idle > 0) {
|
||||||
// idletime += _cctx.getConfig().getValue(
|
// adjust by the time it took them to become idle
|
||||||
// IDLE_TIME_KEY, DEFAULT_IDLE_TIME);
|
// TODO: implement
|
||||||
// var msg :String = MessageBundle.compose(
|
//idle += _cctx.getConfig().getValue(IDLE_TIME_KEY, DEFAULT_IDLE_TIME);
|
||||||
// "m.recipient_idle", MessageBundle.taint(target),
|
var rmsg :String = MessageBundle.compose(
|
||||||
// TimeUtil.getTimeOrderString(idletime, TimeUtil.MINUTE));
|
"m.recipient_idle", MessageBundle.taint(target),
|
||||||
// displayFeedback(_bundle, msg);
|
TimeUtil.getTimeOrderString(idle, TimeUtil.MINUTE));
|
||||||
// }
|
displayFeedback(_bundle, rmsg);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
_cservice.tell(_cctx.getClient(), target, message, new TellAdapter(failure, success));
|
_cservice.tell(_cctx.getClient(), target, message, new TellAdapter(failure, success));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user