대화상대 추가시 버그 수정.

This commit is contained in:
leejinho 2020-01-16 15:41:18 +09:00
parent ad8bed46ae
commit 0a1523fbff
3 changed files with 11 additions and 17 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ucap-webmessenger",
"version": "0.0.5",
"version": "0.0.6",
"author": {
"name": "LG CNS",
"email": "lgucap@lgcns.com"

View File

@ -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: {

View File

@ -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: {