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

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", "name": "ucap-webmessenger",
"version": "0.0.5", "version": "0.0.6",
"author": { "author": {
"name": "LG CNS", "name": "LG CNS",
"email": "lgucap@lgcns.com" "email": "lgucap@lgcns.com"

View File

@ -1545,11 +1545,11 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
}); });
if (!!result && !!result.choice && result.choice) { if (!!result && !!result.choice && result.choice) {
const userSeqs: number[] = this.userInfoList.map(userInfo => { // include me here..
if (userInfo.isJoinRoom) { const userSeqs: number[] = this.userInfoList
return userInfo.seq; .filter(userInfo => userInfo.isJoinRoom)
} .map(userInfo => userInfo.seq);
});
if ( if (
!!result.selectedUserList && !!result.selectedUserList &&
result.selectedUserList.length > 0 result.selectedUserList.length > 0
@ -1562,9 +1562,6 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
} }
if (userSeqs.length > 0) { if (userSeqs.length > 0) {
// include me
userSeqs.push(this.loginRes.userSeq);
this.store.dispatch( this.store.dispatch(
RoomStore.inviteOrOpen({ RoomStore.inviteOrOpen({
req: { req: {

View File

@ -154,11 +154,11 @@ export class RoomUserListComponent implements OnInit, OnDestroy {
}); });
if (!!result && !!result.choice && result.choice) { if (!!result && !!result.choice && result.choice) {
const userSeqs: number[] = this.userInfoList.map(userInfo => { // include me here..
if (userInfo.isJoinRoom) { const userSeqs: number[] = this.userInfoList
return userInfo.seq; .filter(userInfo => userInfo.isJoinRoom)
} .map(userInfo => userInfo.seq);
});
if (!!result.selectedUserList && result.selectedUserList.length > 0) { if (!!result.selectedUserList && result.selectedUserList.length > 0) {
result.selectedUserList.forEach(user => { result.selectedUserList.forEach(user => {
if (userSeqs.indexOf(user.seq) < 0) { if (userSeqs.indexOf(user.seq) < 0) {
@ -168,9 +168,6 @@ export class RoomUserListComponent implements OnInit, OnDestroy {
} }
if (userSeqs.length > 0) { if (userSeqs.length > 0) {
// include me
userSeqs.push(this.loginRes.userSeq);
this.store.dispatch( this.store.dispatch(
RoomStore.inviteOrOpen({ RoomStore.inviteOrOpen({
req: { req: {