방 나가기 모바일 씽크 작업.
This commit is contained in:
parent
5c05a04cca
commit
39aaa78e4e
|
@ -378,6 +378,7 @@ export class AppNotificationService {
|
|||
);
|
||||
}
|
||||
break;
|
||||
case SSVC_TYPE_ROOM_EXIT_RES:
|
||||
case SSVC_TYPE_ROOM_EXIT_NOTI:
|
||||
{
|
||||
const noti = notiOrRes as ExitNotification;
|
||||
|
|
|
@ -316,8 +316,24 @@ export class Effects {
|
|||
() => {
|
||||
return this.actions$.pipe(
|
||||
ofType(exitNotification),
|
||||
map(action => action.noti),
|
||||
tap(noti => {})
|
||||
withLatestFrom(
|
||||
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 }
|
||||
|
|
|
@ -145,6 +145,7 @@ export class RoomProtocolService {
|
|||
);
|
||||
}
|
||||
break;
|
||||
case SSVC_TYPE_ROOM_EXIT_RES:
|
||||
case SSVC_TYPE_ROOM_EXIT_NOTI:
|
||||
{
|
||||
this.notificationSubject.next(decodeExitNotification(message));
|
||||
|
|
Loading…
Reference in New Issue
Block a user