bug fix :: 동료그룹 >

1. 그룹 isActive 값 여부에 따라 수집.
2. 동료 isBuddy, isActive 값 여부에 따라 수집.
This commit is contained in:
leejh 2019-10-18 16:48:30 +09:00
parent 582b76024b
commit 46753d2f67

View File

@ -90,7 +90,11 @@ export class Effects {
map(res => { map(res => {
switch (res.SSVC_TYPE) { switch (res.SSVC_TYPE) {
case SSVC_TYPE_SYNC_BUDDY2_DATA: case SSVC_TYPE_SYNC_BUDDY2_DATA:
buddyList.push(...(res as BuddyDetailData).buddyInfos); buddyList.push(
...(res as BuddyDetailData).buddyInfos.filter(
v => v.isBuddy && v.isActive
)
);
break; break;
case SSVC_TYPE_SYNC_BUDDY2_RES: case SSVC_TYPE_SYNC_BUDDY2_RES:
this.store.dispatch( this.store.dispatch(
@ -124,7 +128,9 @@ export class Effects {
map(res => { map(res => {
switch (res.SSVC_TYPE) { switch (res.SSVC_TYPE) {
case SSVC_TYPE_SYNC_GROUP_DATA2: case SSVC_TYPE_SYNC_GROUP_DATA2:
if ((res as GroupDetailData).isActive) {
groupList.push(res as GroupDetailData); groupList.push(res as GroupDetailData);
}
break; break;
case SSVC_TYPE_SYNC_GROUP_RES2: case SSVC_TYPE_SYNC_GROUP_RES2:
this.store.dispatch( this.store.dispatch(