bugfix :: 노티 클릭시 대화 탭으로 이동 후 대화 방 열기.

This commit is contained in:
leejinho 2020-03-30 18:43:47 +09:00
parent 96e0b7b5dd
commit 59016a6709

View File

@ -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 }));
});