Dispatch tell failures via a TellFeedbackMessage so that we can easily route
them to the appropriate ChatDisplay when we're doing chat in IM-style individual windows. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4663 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -31,15 +31,18 @@ public class TellFeedbackMessage extends UserMessage
|
||||
/**
|
||||
* A tell feedback message is only composed on the client.
|
||||
*/
|
||||
public TellFeedbackMessage (Name target, String message)
|
||||
public TellFeedbackMessage (Name target, String message, boolean failure)
|
||||
{
|
||||
super(target, null, message, ChatCodes.DEFAULT_MODE);
|
||||
setClientInfo(message, ChatCodes.PLACE_CHAT_TYPE);
|
||||
_failure = failure;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFormat ()
|
||||
{
|
||||
return "m.told_format";
|
||||
return _failure ? null : "m.told_format";
|
||||
}
|
||||
|
||||
protected boolean _failure;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user