修复:消息中心接受到多人PK问题
This commit is contained in:
parent
9d69610713
commit
28add09f32
@ -28,7 +28,7 @@ public class PDMessageInterceptor implements MessageInterceptor {
|
|||||||
TextMessage textMessage = (TextMessage) message.getContent();
|
TextMessage textMessage = (TextMessage) message.getContent();
|
||||||
String context = textMessage.getContent();
|
String context = textMessage.getContent();
|
||||||
//符合条件的接受消息不做展示
|
//符合条件的接受消息不做展示
|
||||||
if (context.contains("LivePK")) {
|
if (context.contains("LivePK")||context.contains("LiveDRPK")||context.contains("LiveRandomPK")) {
|
||||||
Message[] messages = new Message[]{message};
|
Message[] messages = new Message[]{message};
|
||||||
Log.e("PDMessageInterceptor", textMessage.getContent());
|
Log.e("PDMessageInterceptor", textMessage.getContent());
|
||||||
//删除消息
|
//删除消息
|
||||||
|
Loading…
Reference in New Issue
Block a user