Don't double note UserMessage instead specifically note tells() which is
the only circumstance where we're not getting sent our own message back to us. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2654 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SpeakProvider.java,v 1.7 2003/06/14 00:47:16 mdb Exp $
|
||||
// $Id: SpeakProvider.java,v 1.8 2003/06/14 00:55:19 mdb Exp $
|
||||
|
||||
package com.threerings.crowd.chat.server;
|
||||
|
||||
@@ -219,12 +219,6 @@ public class SpeakProvider
|
||||
Log.info("Unable to note listeners [dclass=" + speakObj.getClass() +
|
||||
", msg=" + msg + "].");
|
||||
}
|
||||
|
||||
// if this is a user message, note the message in their history as
|
||||
// well
|
||||
if (msg instanceof UserMessage) {
|
||||
noteMessage(((UserMessage)msg).speaker, msg);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -243,7 +237,7 @@ public class SpeakProvider
|
||||
*/
|
||||
public static void clearHistory (String username)
|
||||
{
|
||||
Log.info("Clearing history for " + username + ".");
|
||||
// Log.info("Clearing history for " + username + ".");
|
||||
_histories.remove(username);
|
||||
}
|
||||
|
||||
@@ -258,6 +252,7 @@ public class SpeakProvider
|
||||
msg.timestamp = System.currentTimeMillis();
|
||||
}
|
||||
getHistoryList(username).add(msg);
|
||||
// Log.info("Noted that " + username + " heard " + msg + ".");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user