bugfix
This commit is contained in:
parent
771b88b1b3
commit
52c70097fb
|
@ -89,37 +89,43 @@ export class ListItemComponent implements OnInit {
|
|||
this.defaultPath = 'assets/images/img_groupphoto_80.png';
|
||||
break;
|
||||
case RoomType.Mytalk:
|
||||
if (!!this.roomUserInfo && !!this.loginRes) {
|
||||
const me = this.roomUserInfo.filter(
|
||||
v => v.seq === this.loginRes.userSeq
|
||||
);
|
||||
if (!!me && me.length > 0) {
|
||||
this.imagePath = me[0].profileImageFile;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case RoomType.Single:
|
||||
case RoomType.Bot:
|
||||
case RoomType.Allim:
|
||||
case RoomType.Allim_Elephant:
|
||||
case RoomType.Allim_TMS:
|
||||
if (!!this.roomUserInfo && !!this.loginRes) {
|
||||
const others = this.roomUserInfo.filter(
|
||||
v => v.seq !== this.loginRes.userSeq
|
||||
);
|
||||
if (!!others && others.length > 0) {
|
||||
this.imagePath = others[0].profileImageFile;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
get _roomUserInfos() {
|
||||
if (this.roomInfo.roomType === RoomType.Single) {
|
||||
return this.roomUserInfo.filter(roomUserInfo => {
|
||||
return this.loginRes.userSeq !== roomUserInfo.seq;
|
||||
});
|
||||
return this.roomUserInfo.filter(
|
||||
roomUserInfo =>
|
||||
!!this.loginRes && this.loginRes.userSeq !== roomUserInfo.seq
|
||||
);
|
||||
} else {
|
||||
return this.roomUserInfo
|
||||
.filter(roomUserInfo => {
|
||||
return (
|
||||
!!this.loginRes &&
|
||||
this.loginRes.userSeq !== roomUserInfo.seq &&
|
||||
roomUserInfo.isJoinRoom
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user