From 2755896755f1a3be8d17895e1cdad7c5e386dfed Mon Sep 17 00:00:00 2001 From: leejinho Date: Fri, 3 Jan 2020 09:09:07 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=80=ED=99=94=EB=B0=A9=20=EC=B4=88?= =?UTF-8?q?=EA=B8=B0=20=EB=A1=9C=EB=94=A9=20=EB=8C=80=ED=99=94=20=EA=B0=AF?= =?UTF-8?q?=EC=88=98=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/store/messenger/event/effects.ts | 6 +++--- .../src/environments/environment.daesang.dev.ts | 1 + .../src/environments/environment.daesang.prod.ts | 1 + .../src/environments/environment.dev.ts | 1 + .../src/environments/environment.prod.ts | 1 + .../src/environments/environment.type.ts | 2 ++ 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/store/messenger/event/effects.ts b/projects/ucap-webmessenger-app/src/app/store/messenger/event/effects.ts index a73eb433..ef2a1917 100644 --- a/projects/ucap-webmessenger-app/src/app/store/messenger/event/effects.ts +++ b/projects/ucap-webmessenger-app/src/app/store/messenger/event/effects.ts @@ -138,7 +138,7 @@ export class Effects { map(action => { const roomInfo = action.roomInfo; let requestCount = - environment.productConfig.CommonSetting.eventRequestDefaultCount; + environment.productConfig.CommonSetting.eventRequestInitCount; // 여기까지 읽음 처리.. if (!!roomInfo.finalEventSeq && !!roomInfo.lastReadEventSeq) { @@ -146,11 +146,11 @@ export class Effects { // 기존 요청개수보다 요청할 갯수가 적을 경우 기본값. if ( - environment.productConfig.CommonSetting.eventRequestDefaultCount >= + environment.productConfig.CommonSetting.eventRequestInitCount >= requestCount ) { requestCount = - environment.productConfig.CommonSetting.eventRequestDefaultCount; + environment.productConfig.CommonSetting.eventRequestInitCount; } else { // 여기까지 읽음 처리를 위한 최대 요청 개수 제한. if ( diff --git a/projects/ucap-webmessenger-app/src/environments/environment.daesang.dev.ts b/projects/ucap-webmessenger-app/src/environments/environment.daesang.dev.ts index 945d7cac..0bfade37 100644 --- a/projects/ucap-webmessenger-app/src/environments/environment.daesang.dev.ts +++ b/projects/ucap-webmessenger-app/src/environments/environment.daesang.dev.ts @@ -75,6 +75,7 @@ export const environment: Environment = { maxChatRoomUser: 300, masstextLength: 800, + eventRequestInitCount: 15, eventRequestDefaultCount: 50, readHereShowMinimumEventCount: 10, diff --git a/projects/ucap-webmessenger-app/src/environments/environment.daesang.prod.ts b/projects/ucap-webmessenger-app/src/environments/environment.daesang.prod.ts index eaec84ba..914ff1a1 100644 --- a/projects/ucap-webmessenger-app/src/environments/environment.daesang.prod.ts +++ b/projects/ucap-webmessenger-app/src/environments/environment.daesang.prod.ts @@ -75,6 +75,7 @@ export const environment: Environment = { maxChatRoomUser: 300, masstextLength: 800, + eventRequestInitCount: 30, eventRequestDefaultCount: 50, readHereShowMinimumEventCount: 10, diff --git a/projects/ucap-webmessenger-app/src/environments/environment.dev.ts b/projects/ucap-webmessenger-app/src/environments/environment.dev.ts index cf1e7866..175c70ee 100644 --- a/projects/ucap-webmessenger-app/src/environments/environment.dev.ts +++ b/projects/ucap-webmessenger-app/src/environments/environment.dev.ts @@ -75,6 +75,7 @@ export const environment: Environment = { maxChatRoomUser: 300, masstextLength: 800, + eventRequestInitCount: 15, eventRequestDefaultCount: 50, readHereShowMinimumEventCount: 10, diff --git a/projects/ucap-webmessenger-app/src/environments/environment.prod.ts b/projects/ucap-webmessenger-app/src/environments/environment.prod.ts index e0dbafc0..0df1a924 100644 --- a/projects/ucap-webmessenger-app/src/environments/environment.prod.ts +++ b/projects/ucap-webmessenger-app/src/environments/environment.prod.ts @@ -75,6 +75,7 @@ export const environment: Environment = { maxChatRoomUser: 300, masstextLength: 800, + eventRequestInitCount: 15, eventRequestDefaultCount: 50, readHereShowMinimumEventCount: 10, diff --git a/projects/ucap-webmessenger-app/src/environments/environment.type.ts b/projects/ucap-webmessenger-app/src/environments/environment.type.ts index 4e97d513..0e93e851 100644 --- a/projects/ucap-webmessenger-app/src/environments/environment.type.ts +++ b/projects/ucap-webmessenger-app/src/environments/environment.type.ts @@ -82,6 +82,8 @@ export interface Environment { /** 대용량대화 기준 */ masstextLength: number; + /** 대화방 초기 로딩 이벤트 갯수 */ + eventRequestInitCount: number; /** 대화방 이벤트 조회 개수 */ eventRequestDefaultCount: number;