Expose the chat history between crowd peers.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5992 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Jamie Doornbos
2009-11-10 00:34:41 +00:00
parent 5e6cf46926
commit 90a21319f1
5 changed files with 56 additions and 0 deletions
@@ -24,6 +24,7 @@ package com.threerings.crowd.peer.server;
import com.threerings.crowd.chat.client.ChatService;
import com.threerings.crowd.chat.data.UserMessage;
import com.threerings.crowd.peer.data.CrowdPeerMarshaller;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException;
@@ -67,6 +68,12 @@ public class CrowdPeerDispatcher extends InvocationDispatcher<CrowdPeerMarshalle
);
return;
case CrowdPeerMarshaller.GET_CHAT_HISTORY:
((CrowdPeerProvider)provider).getChatHistory(
source, (Name)args[0], (InvocationService.ResultListener)args[1]
);
return;
default:
super.dispatchRequest(source, methodId, args);
return;