敏感词过来所有消息的searchableContent字段
This commit is contained in:
@@ -108,7 +108,7 @@ public class SendMessageHandler extends IMHandler<WFCMessage.Message> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!isAdmin && message.getContent().getType() == Text) {
|
if (!isAdmin) {
|
||||||
Set<String> matched = m_messagesStore.handleSensitiveWord(message.getContent().getSearchableContent());
|
Set<String> matched = m_messagesStore.handleSensitiveWord(message.getContent().getSearchableContent());
|
||||||
if (matched != null && !matched.isEmpty()) {
|
if (matched != null && !matched.isEmpty()) {
|
||||||
m_messagesStore.storeSensitiveMessage(message);
|
m_messagesStore.storeSensitiveMessage(message);
|
||||||
|
|||||||
Reference in New Issue
Block a user