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 function TellFeedbackMessage (target :Name, message :String)
|
||||
public function TellFeedbackMessage (target :Name, message :String, failed :Boolean = false)
|
||||
{
|
||||
super(target, null, message);
|
||||
setClientInfo(message, ChatCodes.PLACE_CHAT_TYPE);
|
||||
_failed = failed;
|
||||
}
|
||||
|
||||
override public function getFormat () :String
|
||||
{
|
||||
return "m.told_format";
|
||||
return _failed ? null : "m.told_format";
|
||||
}
|
||||
|
||||
protected var _failed :Boolean;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user