Fix opening 'Add Contact' tab
This commit is contained in:
parent
911c1dc702
commit
1760ad42d8
@ -278,9 +278,13 @@ export default class ChatTopbar {
|
|||||||
icon: 'adduser',
|
icon: 'adduser',
|
||||||
text: 'AddContact',
|
text: 'AddContact',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
const tab = new AppEditContactTab(this.appSidebarRight);
|
if(!this.appSidebarRight.isTabExists(AppEditContactTab)) {
|
||||||
tab.peerId = this.peerId;
|
const tab = new AppEditContactTab(this.appSidebarRight);
|
||||||
tab.open();
|
tab.peerId = this.peerId;
|
||||||
|
tab.open();
|
||||||
|
|
||||||
|
this.appSidebarRight.toggleSidebar(true);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
verify: () => this.peerId > 0 && !this.appUsersManager.isContact(this.peerId)
|
verify: () => this.peerId > 0 && !this.appUsersManager.isContact(this.peerId)
|
||||||
}, {
|
}, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user