修复:消息中心接受到多人PK问题

This commit is contained in:
18401019693 2022-12-10 17:53:49 +08:00
parent 9d69610713
commit 28add09f32

View File

@ -28,7 +28,7 @@ public class PDMessageInterceptor implements MessageInterceptor {
TextMessage textMessage = (TextMessage) message.getContent();
String context = textMessage.getContent();
//符合条件的接受消息不做展示
if (context.contains("LivePK")) {
if (context.contains("LivePK")||context.contains("LiveDRPK")||context.contains("LiveRandomPK")) {
Message[] messages = new Message[]{message};
Log.e("PDMessageInterceptor", textMessage.getContent());
//删除消息