대화방 초기 로딩 대화 갯수 지정

This commit is contained in:
leejinho 2020-01-03 09:09:07 +09:00
parent 35f868c25c
commit 2755896755
6 changed files with 9 additions and 3 deletions

View File

@ -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 (

View File

@ -75,6 +75,7 @@ export const environment: Environment = {
maxChatRoomUser: 300,
masstextLength: 800,
eventRequestInitCount: 15,
eventRequestDefaultCount: 50,
readHereShowMinimumEventCount: 10,

View File

@ -75,6 +75,7 @@ export const environment: Environment = {
maxChatRoomUser: 300,
masstextLength: 800,
eventRequestInitCount: 30,
eventRequestDefaultCount: 50,
readHereShowMinimumEventCount: 10,

View File

@ -75,6 +75,7 @@ export const environment: Environment = {
maxChatRoomUser: 300,
masstextLength: 800,
eventRequestInitCount: 15,
eventRequestDefaultCount: 50,
readHereShowMinimumEventCount: 10,

View File

@ -75,6 +75,7 @@ export const environment: Environment = {
maxChatRoomUser: 300,
masstextLength: 800,
eventRequestInitCount: 15,
eventRequestDefaultCount: 50,
readHereShowMinimumEventCount: 10,

View File

@ -82,6 +82,8 @@ export interface Environment {
/** 대용량대화 기준 */
masstextLength: number;
/** 대화방 초기 로딩 이벤트 갯수 */
eventRequestInitCount: number;
/** 대화방 이벤트 조회 개수 */
eventRequestDefaultCount: number;