대화상대 추가시 버그 수정.
This commit is contained in:
parent
ad8bed46ae
commit
0a1523fbff
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ucap-webmessenger",
|
||||
"version": "0.0.5",
|
||||
"version": "0.0.6",
|
||||
"author": {
|
||||
"name": "LG CNS",
|
||||
"email": "lgucap@lgcns.com"
|
||||
|
|
|
@ -1545,11 +1545,11 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
});
|
||||
|
||||
if (!!result && !!result.choice && result.choice) {
|
||||
const userSeqs: number[] = this.userInfoList.map(userInfo => {
|
||||
if (userInfo.isJoinRoom) {
|
||||
return userInfo.seq;
|
||||
}
|
||||
});
|
||||
// include me here..
|
||||
const userSeqs: number[] = this.userInfoList
|
||||
.filter(userInfo => userInfo.isJoinRoom)
|
||||
.map(userInfo => userInfo.seq);
|
||||
|
||||
if (
|
||||
!!result.selectedUserList &&
|
||||
result.selectedUserList.length > 0
|
||||
|
@ -1562,9 +1562,6 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
}
|
||||
|
||||
if (userSeqs.length > 0) {
|
||||
// include me
|
||||
userSeqs.push(this.loginRes.userSeq);
|
||||
|
||||
this.store.dispatch(
|
||||
RoomStore.inviteOrOpen({
|
||||
req: {
|
||||
|
|
|
@ -154,11 +154,11 @@ export class RoomUserListComponent implements OnInit, OnDestroy {
|
|||
});
|
||||
|
||||
if (!!result && !!result.choice && result.choice) {
|
||||
const userSeqs: number[] = this.userInfoList.map(userInfo => {
|
||||
if (userInfo.isJoinRoom) {
|
||||
return userInfo.seq;
|
||||
}
|
||||
});
|
||||
// include me here..
|
||||
const userSeqs: number[] = this.userInfoList
|
||||
.filter(userInfo => userInfo.isJoinRoom)
|
||||
.map(userInfo => userInfo.seq);
|
||||
|
||||
if (!!result.selectedUserList && result.selectedUserList.length > 0) {
|
||||
result.selectedUserList.forEach(user => {
|
||||
if (userSeqs.indexOf(user.seq) < 0) {
|
||||
|
@ -168,9 +168,6 @@ export class RoomUserListComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
|
||||
if (userSeqs.length > 0) {
|
||||
// include me
|
||||
userSeqs.push(this.loginRes.userSeq);
|
||||
|
||||
this.store.dispatch(
|
||||
RoomStore.inviteOrOpen({
|
||||
req: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user