修复了糖果树开启对外展示的消息用户等级不够需要退出房间之后才能刷新的问题
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
} else if(first == CustomMessageType_Kick_User || first == CustomMessageType_Queue) {
|
||||
XPKickUserModel * kickModel = [XPKickUserModel modelWithJSON:attachment.data];
|
||||
return [self createKickUserAttribute:attachment info:kickModel];
|
||||
} else if(first == CustomMessageType_Candy_Tree ) {//糖果树
|
||||
} else if(first == CustomMessageType_Candy_Tree) {//糖果树
|
||||
return [self createCandyTreeHighLevelAttribute:attachment];
|
||||
} else if(first == CustomMessageType_Arrange_Mic) {
|
||||
return [self createArrangeMicAttribute:attachment];
|
||||
@@ -584,7 +584,14 @@
|
||||
[attribute appendAttributedString:[self createTextAttribute:giftInfo.nick color:[ThemeColor messageNickColor] font:kRoomMessageDefalutFont]];
|
||||
[attribute appendAttributedString:[self createTextAttribute:@"摘下糖果获得" color:[ThemeColor messageDefaultTextColor] font:kRoomMessageDefalutFont]];
|
||||
[attribute appendAttributedString:[self createTextAttribute:giftInfo.prizeName color:[ThemeColor messageTextColor] font:kRoomMessageDefalutFont]];
|
||||
[attribute appendAttributedString:[self createTextAttribute:[NSString stringWithFormat:@" X %d", giftInfo.prizeNum] color:[ThemeColor messageTextColor] font:kRoomMessageDefalutFont]];
|
||||
if (giftInfo.prizeNum > 1) {
|
||||
[attribute appendAttributedString:[self createTextAttribute:[NSString stringWithFormat:@" X %d", giftInfo.prizeNum] color:[ThemeColor messageTextColor] font:kRoomMessageDefalutFont]];
|
||||
}
|
||||
|
||||
if (attachment.second == Custom_Message_Sub_Candy_Tree_Me && giftInfo.uid.integerValue == [AccountInfoStorage instance].getUid.integerValue) {
|
||||
[attribute appendAttributedString:[self createTextAttribute:@"(仅自己可见)" color:[ThemeColor messageTextColor] font:kRoomMessageDefalutFont]];
|
||||
}
|
||||
|
||||
[self attributeAddHihtLight:attribute uid:giftInfo.uid.integerValue];
|
||||
return attribute;
|
||||
}
|
||||
|
Reference in New Issue
Block a user