From 46753d2f674f5e24898811f43636f5f3e92d0ef0 Mon Sep 17 00:00:00 2001 From: leejh Date: Fri, 18 Oct 2019 16:48:30 +0900 Subject: [PATCH] =?UTF-8?q?bug=20fix=20::=20=EB=8F=99=EB=A3=8C=EA=B7=B8?= =?UTF-8?q?=EB=A3=B9=20>=201.=20=EA=B7=B8=EB=A3=B9=20isActive=20=EA=B0=92?= =?UTF-8?q?=20=EC=97=AC=EB=B6=80=EC=97=90=20=EB=94=B0=EB=9D=BC=20=EC=88=98?= =?UTF-8?q?=EC=A7=91.=202.=20=EB=8F=99=EB=A3=8C=20isBuddy,=20isActive=20?= =?UTF-8?q?=EA=B0=92=20=EC=97=AC=EB=B6=80=EC=97=90=20=EB=94=B0=EB=9D=BC=20?= =?UTF-8?q?=EC=88=98=EC=A7=91.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/store/messenger/sync/effects.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/store/messenger/sync/effects.ts b/projects/ucap-webmessenger-app/src/app/store/messenger/sync/effects.ts index f5bdfd32..a972912e 100644 --- a/projects/ucap-webmessenger-app/src/app/store/messenger/sync/effects.ts +++ b/projects/ucap-webmessenger-app/src/app/store/messenger/sync/effects.ts @@ -90,7 +90,11 @@ export class Effects { map(res => { switch (res.SSVC_TYPE) { 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; case SSVC_TYPE_SYNC_BUDDY2_RES: this.store.dispatch( @@ -124,7 +128,9 @@ export class Effects { map(res => { switch (res.SSVC_TYPE) { case SSVC_TYPE_SYNC_GROUP_DATA2: - groupList.push(res as GroupDetailData); + if ((res as GroupDetailData).isActive) { + groupList.push(res as GroupDetailData); + } break; case SSVC_TYPE_SYNC_GROUP_RES2: this.store.dispatch(