新增贵族特权:隐身进房和进房特效
This commit is contained in:
@@ -833,12 +833,11 @@ public final class IMNetEaseManager {
|
||||
}
|
||||
} else if (second == CUSTOM_MSG_UPDATE_ROOM_INFO_NOTICE) {
|
||||
addMessages(msg);
|
||||
}
|
||||
else if (second == CUSTOM_MSG_UPDATE_ROOM_INFO_CLEAN_SCREEN) {
|
||||
noticeRoomEvent(msg,RoomEvent.ROOM_CLEAN_SCREEN);
|
||||
} else if (second == CUSTOM_MSG_UPDATE_ROOM_INFO_CLEAN_SCREEN) {
|
||||
noticeRoomEvent(msg, RoomEvent.ROOM_CLEAN_SCREEN);
|
||||
AvRoomDataManager.get().chatRoomDataRelease(true);
|
||||
addMessages(msg);
|
||||
}else {
|
||||
} else {
|
||||
noticeUpdateRoomInfo((CustomAttachment) attachment);
|
||||
}
|
||||
break;
|
||||
@@ -1471,6 +1470,11 @@ public final class IMNetEaseManager {
|
||||
if (extensionDataMap.containsKey("experLevelSeq")) {
|
||||
experLevelSeq = (int) extensionDataMap.get("experLevelSeq");
|
||||
}
|
||||
|
||||
String enterRoomEffects = "";
|
||||
if (extensionDataMap.containsKey(UserInfo.ENTER_ROOM_EFFECTS)) {
|
||||
enterRoomEffects = (String) extensionDataMap.get(UserInfo.ENTER_ROOM_EFFECTS);
|
||||
}
|
||||
Map<String, Object> remoteExtension = msg.getRemoteExtension();
|
||||
if (remoteExtension == null) {
|
||||
remoteExtension = new HashMap<>();
|
||||
@@ -1479,8 +1483,8 @@ public final class IMNetEaseManager {
|
||||
remoteExtension.put("fromType", fromType);
|
||||
remoteExtension.put("fromNick", fromNick);
|
||||
remoteExtension.put("fromUid", fromUid);
|
||||
|
||||
remoteExtension.put("experLevelSeq", experLevelSeq);
|
||||
remoteExtension.put(UserInfo.ENTER_ROOM_EFFECTS, enterRoomEffects);
|
||||
msg.setRemoteExtension(remoteExtension);
|
||||
}
|
||||
}
|
||||
|
@@ -14,6 +14,7 @@ import com.yizhuan.xchat_android_core.decoration.car.bean.CarInfo;
|
||||
import com.yizhuan.xchat_android_core.decoration.headwear.bean.HeadWearInfo;
|
||||
import com.yizhuan.xchat_android_core.level.UserLevelVo;
|
||||
import com.yizhuan.xchat_android_core.noble.NobleInfo;
|
||||
import com.yizhuan.xchat_android_core.noble.NobleResourceType;
|
||||
import com.yizhuan.xchat_android_core.utils.StarUtils;
|
||||
import com.yizhuan.xchat_android_core.vip.UserVipInfo;
|
||||
|
||||
@@ -48,6 +49,7 @@ public class UserInfo implements Serializable {
|
||||
public static String NAMEPLATE_WORD = "inRoomNameplateWord";
|
||||
public static String NAMEPLATE_PIC = "inRoomNameplatePic";
|
||||
public static String VIP_ICON = "vipIcon";
|
||||
public static String ENTER_ROOM_EFFECTS = "enterRoomEffects";
|
||||
public static String BUBBLE_URL_ANDROID = "androidBubbleUrl";
|
||||
public static String BUBBLE_URL_IOS = "iosBubbleUrl";
|
||||
public static String AT_UIDS = "atUids";
|
||||
@@ -592,6 +594,10 @@ public class UserInfo implements Serializable {
|
||||
UserVipInfo userVipInfo = userInfo.getUserVipInfoVO();
|
||||
if (userVipInfo != null && !TextUtils.isEmpty(userVipInfo.getVipIcon())) {
|
||||
map.put(VIP_ICON, userVipInfo.getVipIcon());
|
||||
map.put(NobleResourceType.KEY_ENTER_HIDE, userVipInfo.getEnterHide() ? 1 : 0);
|
||||
if (!TextUtils.isEmpty(userVipInfo.getEnterRoomEffects())) {
|
||||
map.put(ENTER_ROOM_EFFECTS, userVipInfo.getEnterRoomEffects());
|
||||
}
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(androidBubbleUrl)) {
|
||||
|
@@ -6,4 +6,7 @@ data class UserVipInfo(
|
||||
val vipIcon: String = "",
|
||||
val vipLevel: Int = 0,
|
||||
val friendNickColour: String = "",
|
||||
val preventKick: Boolean = false,
|
||||
val enterHide: Boolean = false,
|
||||
val enterRoomEffects: String = ""
|
||||
) : Serializable
|
||||
|
Reference in New Issue
Block a user