diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts index 97336cad..1af9a30a 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts @@ -1636,7 +1636,10 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit { if (userSeqs.length > 0) { // include me - userSeqs.push(this.loginResSubject.value.userSeq); + const myUserSeq = this.loginResSubject.value.userSeq; + if (!!myUserSeq && userSeqs.indexOf(myUserSeq) < 0) { + userSeqs.push(myUserSeq); + } this.store.dispatch( RoomStore.inviteOrOpen({