bugfix :: 현재 열려 있는 대화방이어도, windowState 가 minimal, hidden 일 경우에는 noti 팝업을 보여주도록 수정.
This commit is contained in:
parent
c07d13eae8
commit
0686c1d512
|
@ -92,7 +92,8 @@ import {
|
|||
NotificationRequest,
|
||||
NativeService,
|
||||
UCAP_NATIVE_SERVICE,
|
||||
NotificationType
|
||||
NotificationType,
|
||||
WindowState
|
||||
} from '@ucap-webmessenger/native';
|
||||
import { StringUtil, DialogService } from '@ucap-webmessenger/ui';
|
||||
import {
|
||||
|
@ -208,9 +209,10 @@ export class AppNotificationService {
|
|||
(state: any) =>
|
||||
state.messenger.sync.room.entities as Dictionary<RoomInfo>
|
||||
)
|
||||
)
|
||||
),
|
||||
tap(([notiOrRes, curRoomInfo, roomList]) => {
|
||||
this.nativeService.windowStateChanged()
|
||||
),
|
||||
tap(([notiOrRes, curRoomInfo, roomList, windowStateChanged]) => {
|
||||
switch (notiOrRes.SSVC_TYPE) {
|
||||
case SSVC_TYPE_EVENT_SEND_RES:
|
||||
case SSVC_TYPE_EVENT_SEND_NOTI:
|
||||
|
@ -243,7 +245,10 @@ export class AppNotificationService {
|
|||
if (
|
||||
!!curRoomInfo &&
|
||||
!!curRoomInfo.roomSeq &&
|
||||
curRoomInfo.roomSeq === noti.roomSeq
|
||||
curRoomInfo.roomSeq === noti.roomSeq &&
|
||||
!!windowStateChanged &&
|
||||
windowStateChanged !== WindowState.Minimized &&
|
||||
windowStateChanged !== WindowState.Hidden
|
||||
) {
|
||||
doNoti = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user