방 나가기 모바일 씽크 작업.
This commit is contained in:
parent
5c05a04cca
commit
39aaa78e4e
@ -378,6 +378,7 @@ export class AppNotificationService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SSVC_TYPE_ROOM_EXIT_RES:
|
||||||
case SSVC_TYPE_ROOM_EXIT_NOTI:
|
case SSVC_TYPE_ROOM_EXIT_NOTI:
|
||||||
{
|
{
|
||||||
const noti = notiOrRes as ExitNotification;
|
const noti = notiOrRes as ExitNotification;
|
||||||
|
@ -316,8 +316,24 @@ export class Effects {
|
|||||||
() => {
|
() => {
|
||||||
return this.actions$.pipe(
|
return this.actions$.pipe(
|
||||||
ofType(exitNotification),
|
ofType(exitNotification),
|
||||||
map(action => action.noti),
|
withLatestFrom(
|
||||||
tap(noti => {})
|
this.store.pipe(
|
||||||
|
select((state: any) => state.messenger.room.roomInfo as RoomInfo)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
tap(([action, roomInfo]) => {
|
||||||
|
if (!!roomInfo && roomInfo.roomSeq === action.noti.roomSeq) {
|
||||||
|
this.store.dispatch(ChatStore.clearSelectedRoom());
|
||||||
|
}
|
||||||
|
|
||||||
|
this.store.dispatch(
|
||||||
|
exitSuccess({
|
||||||
|
res: {
|
||||||
|
roomSeq: action.noti.roomSeq
|
||||||
|
}
|
||||||
|
})
|
||||||
|
);
|
||||||
|
})
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
{ dispatch: false }
|
{ dispatch: false }
|
||||||
|
@ -145,6 +145,7 @@ export class RoomProtocolService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SSVC_TYPE_ROOM_EXIT_RES:
|
||||||
case SSVC_TYPE_ROOM_EXIT_NOTI:
|
case SSVC_TYPE_ROOM_EXIT_NOTI:
|
||||||
{
|
{
|
||||||
this.notificationSubject.next(decodeExitNotification(message));
|
this.notificationSubject.next(decodeExitNotification(message));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user