Fix going by broken contact
This commit is contained in:
parent
0474a7c959
commit
037a604eef
@ -1247,6 +1247,10 @@ export class AppImManager {
|
||||
}
|
||||
|
||||
public setInnerPeer(peerId: PeerId, lastMsgId?: number, type: ChatType = 'chat', threadId?: number) {
|
||||
if(peerId === NULL_PEER_ID || !peerId) {
|
||||
return;
|
||||
}
|
||||
|
||||
// * prevent opening already opened peer
|
||||
const existingIndex = this.chats.findIndex(chat => chat.peerId === peerId && chat.type === type);
|
||||
if(existingIndex !== -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user