diff --git a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts index 6f8f1845..08c0729f 100644 --- a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts +++ b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts @@ -15,6 +15,7 @@ import * as AppStore from '@app/store'; import * as ChatStore from '@app/store/messenger/chat'; import * as MessageStore from '@app/store/messenger/message'; import * as StatusStore from '@app/store/messenger/status'; +import * as SettingsStore from '@app/store/messenger/settings'; import { Observable, Subscription, of, timer, EMPTY } from 'rxjs'; import { UCAP_NATIVE_SERVICE, NativeService } from '@ucap-webmessenger/native'; @@ -40,7 +41,7 @@ import { LoginResponse } from '@ucap-webmessenger/protocol-authentication'; import { OpenProfileOptions } from '@ucap-webmessenger/protocol-buddy'; import { DaesangProtocolService, SmsUtils } from '@ucap-webmessenger/daesang'; import { CallService, ConferenceService } from '@ucap-webmessenger/api-prompt'; -import { EnvironmentsInfo, KEY_ENVIRONMENTS_INFO } from '@app/types'; +import { EnvironmentsInfo, KEY_ENVIRONMENTS_INFO, MainMenu } from '@app/types'; import { SessionStorageService, LocalStorageService @@ -219,6 +220,11 @@ export class MainPageComponent implements OnInit, OnDestroy { this.chatOpenRoomSubscription = this.nativeService .chatOpenRoom() .subscribe(roomSeq => { + this.store.dispatch( + SettingsStore.selectedGnbMenuIndex({ + menuIndex: MainMenu.Chat + }) + ); this.store.dispatch(ChatStore.selectedRoom({ roomSeq })); });