发现萌新-打招呼-消息列表

This commit is contained in:
oujunhui
2020-09-11 17:16:21 +08:00
parent 8d1a1c7386
commit 328b42f3cc
10 changed files with 114 additions and 15 deletions

View File

@@ -159,7 +159,10 @@ public class IMMessageManager {
NewbieHelloAttachment newbieHelloAttachment = (NewbieHelloAttachment) msg.getAttachment();
NewbieHelloInfo helloInfo = newbieHelloAttachment.getNewbieHelloInfo();
if (attachment.getSecond() == CUSTOM_MSG_RECEIV_NEWBIE_HELLO) {
EventBus.getDefault().post(new NewbieHelloDialogEvent(helloInfo));
String uid = String.valueOf(AuthModel.get().getCurrentUid());
if (!(Objects.equals(uid, String.valueOf(helloInfo.getUid())))){
EventBus.getDefault().post(new NewbieHelloDialogEvent(helloInfo));
}
}
break;

View File

@@ -9,4 +9,5 @@ public class NewbieHelloInfo {
public int gender;
public String message;
public long inRoomUid;
public String uid;
}