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(