Revamped chat handling a bit:
- the ChatProvider is now a proper singleton rather than providing static methods for everything (it is accessed through CrowdServer.chatprov) - it can now be extended to create a custom UserMessage for tells (which can contain avatar information on systems that want to show an avatar on the receipt of a tell) - the ChatProvider API was tidied up a bit as some methods had been addded over time that were not sufficiently general purpose so their callers will be changed to use the general purpose APIs. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4251 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -23,6 +23,7 @@ package com.threerings.crowd.peer.server;
|
||||
|
||||
import com.threerings.crowd.chat.client.ChatService;
|
||||
import com.threerings.crowd.chat.data.ChatMarshaller;
|
||||
import com.threerings.crowd.chat.data.UserMessage;
|
||||
import com.threerings.crowd.peer.client.CrowdPeerService;
|
||||
import com.threerings.crowd.peer.data.CrowdPeerMarshaller;
|
||||
import com.threerings.presents.client.Client;
|
||||
@@ -61,7 +62,7 @@ public class CrowdPeerDispatcher extends InvocationDispatcher
|
||||
case CrowdPeerMarshaller.DELIVER_TELL:
|
||||
((CrowdPeerProvider)provider).deliverTell(
|
||||
source,
|
||||
(Name)args[0], (Name)args[1], (String)args[2], (ChatService.TellListener)args[3]
|
||||
(UserMessage)args[0], (Name)args[1], (ChatService.TellListener)args[2]
|
||||
);
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user