|
|
@ -278,9 +278,13 @@ export default class ChatTopbar { |
|
|
|
icon: 'adduser', |
|
|
|
icon: 'adduser', |
|
|
|
text: 'AddContact', |
|
|
|
text: 'AddContact', |
|
|
|
onClick: () => { |
|
|
|
onClick: () => { |
|
|
|
|
|
|
|
if(!this.appSidebarRight.isTabExists(AppEditContactTab)) { |
|
|
|
const tab = new AppEditContactTab(this.appSidebarRight); |
|
|
|
const tab = new AppEditContactTab(this.appSidebarRight); |
|
|
|
tab.peerId = this.peerId; |
|
|
|
tab.peerId = this.peerId; |
|
|
|
tab.open(); |
|
|
|
tab.open(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.appSidebarRight.toggleSidebar(true); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
verify: () => this.peerId > 0 && !this.appUsersManager.isContact(this.peerId) |
|
|
|
verify: () => this.peerId > 0 && !this.appUsersManager.isContact(this.peerId) |
|
|
|
}, { |
|
|
|
}, { |
|
|
|