Actually, let's do that this way.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5295 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -619,7 +619,9 @@ public class ChatDirector extends BasicDirector
|
|||||||
removeAuxiliarySource(_clobj);
|
removeAuxiliarySource(_clobj);
|
||||||
addAuxiliarySource(_clobj = event.getClient().getClientObject(), ChatCodes.USER_CHAT_TYPE);
|
addAuxiliarySource(_clobj = event.getClient().getClientObject(), ChatCodes.USER_CHAT_TYPE);
|
||||||
|
|
||||||
clientLeftOrChanged();
|
if (clearChatOnClientExit()) {
|
||||||
|
clearDisplays();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -635,6 +637,10 @@ public class ChatDirector extends BasicDirector
|
|||||||
// in fact, clear out all auxiliary sources
|
// in fact, clear out all auxiliary sources
|
||||||
_auxes.clear();
|
_auxes.clear();
|
||||||
|
|
||||||
|
if (clearChatOnClientExit()) {
|
||||||
|
clearDisplays();
|
||||||
|
}
|
||||||
|
|
||||||
// clear out the list of people we've chatted with
|
// clear out the list of people we've chatted with
|
||||||
_chatters.length = 0;
|
_chatters.length = 0;
|
||||||
notifyChatterObservers();
|
notifyChatterObservers();
|
||||||
@@ -644,16 +650,6 @@ public class ChatDirector extends BasicDirector
|
|||||||
|
|
||||||
// clear our service
|
// clear our service
|
||||||
_cservice = null;
|
_cservice = null;
|
||||||
|
|
||||||
clientLeftOrChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Overridable.
|
|
||||||
*/
|
|
||||||
protected function clientLeftOrChanged () :void
|
|
||||||
{
|
|
||||||
clearDisplays();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -987,6 +983,12 @@ public class ChatDirector extends BasicDirector
|
|||||||
_cservice = (client.requireService(ChatService) as ChatService);
|
_cservice = (client.requireService(ChatService) as ChatService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Overrideable. */
|
||||||
|
protected function clearChatOnClientExit () :Boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/** Our active chat context. */
|
/** Our active chat context. */
|
||||||
protected var _cctx :CrowdContext;
|
protected var _cctx :CrowdContext;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user