# 이슈처리 250
This commit is contained in:
parent
b70e62791d
commit
e2d0744aa9
|
@ -44,7 +44,8 @@ import {
|
|||
import {
|
||||
EnvironmentsInfo,
|
||||
KEY_ENVIRONMENTS_INFO,
|
||||
KEY_VER_INFO
|
||||
KEY_VER_INFO,
|
||||
MainMenu
|
||||
} from '@app/types';
|
||||
|
||||
import * as AppStore from '@app/store';
|
||||
|
@ -110,6 +111,7 @@ export class MessageBoxComponent
|
|||
|
||||
messageTypeList: MessageTypeData[] = [];
|
||||
langChangeSubscription: Subscription;
|
||||
messageActivatedSubscription: Subscription;
|
||||
|
||||
constructor(
|
||||
private store: Store<any>,
|
||||
|
@ -255,9 +257,13 @@ export class MessageBoxComponent
|
|||
// 초기 검색은 수신함.
|
||||
this.getRetrieveMessage(MessageType.Receive, 0);
|
||||
|
||||
if (!!this.tabs) {
|
||||
this.tabs.realignInkBar();
|
||||
}
|
||||
this.messageActivatedSubscription = this.store
|
||||
.pipe(select(AppStore.MessengerSelector.SettingsSelector.gnbMenuIndex))
|
||||
.subscribe(menu => {
|
||||
if (menu === MainMenu.Message && !!this.tabs) {
|
||||
this.tabs.realignInkBar();
|
||||
}
|
||||
});
|
||||
|
||||
this.setMessageTypeData();
|
||||
this.langChangeSubscription = merge(
|
||||
|
@ -283,6 +289,9 @@ export class MessageBoxComponent
|
|||
if (!!this.langChangeSubscription) {
|
||||
this.langChangeSubscription.unsubscribe();
|
||||
}
|
||||
if (!!this.messageActivatedSubscription) {
|
||||
this.messageActivatedSubscription.unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
onSelectedIndexTab(value: number) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user