# 이슈처리

[53 0명 그룹 대화방 생성됨] :: 0명그룹에 그룹대화 메뉴 삭제
This commit is contained in:
leejinho 2019-11-27 15:30:14 +09:00
parent 9c7839f65a
commit a4e018eef3
2 changed files with 15 additions and 2 deletions

View File

@ -308,6 +308,15 @@ export class GroupComponent implements OnInit, OnDestroy {
}
}
// 그룹원 0명인 그룹 메뉴 정리
if (menuType === 'CHAT') {
if (!!group && !!group.userSeqs && group.userSeqs.length > 0) {
return true;
} else {
return false;
}
}
return true;
}

View File

@ -77,9 +77,13 @@ export const decodeGroupData: ProtocolDecoder<GroupData> = (
export const decodeGroupDetailData: ProtocolDecoder<GroupDetailData> = (
message: ProtocolMessage
) => {
let userSeqs: number[] = [];
const userSeqs: number[] = [];
if (message.bodyList.length > 3) {
userSeqs = message.bodyList.slice(3);
message.bodyList.slice(3).forEach(seq => {
if (seq !== 0) {
userSeqs.push(seq);
}
});
}
return decodeProtocolMessage(message, {
// 그룹SEQ(n)