forked from Qortal/qortal-ui
Merge pull request #280 from QuickMythril/private-group-links
Add private group support to join links
This commit is contained in:
commit
70e4feb15b
@ -395,7 +395,7 @@ class ChatPage extends LitElement {
|
||||
|
||||
</div>
|
||||
<div style="display: flex; height: 100%; align-items: center">
|
||||
${(!this.isReceipient && +this._chatId !== 0 && this.groupInfo.isOpen) ?
|
||||
${(!this.isReceipient && +this._chatId !== 0) ?
|
||||
html`
|
||||
<mwc-icon class="top-bar-icon" @click=${this.copyJoinGroupLinkToClipboard} style="margin: 0px 10px">link</mwc-icon>
|
||||
`
|
||||
|
@ -1847,13 +1847,7 @@ class GroupManagement extends LitElement {
|
||||
if(sideEffectAction && sideEffectAction.type === 'openJoinGroupModal'){
|
||||
const res = await getGroupInfo(sideEffectAction.data)
|
||||
if(res && res.groupId){
|
||||
if(res.isOpen){
|
||||
this.joinGroup(res)
|
||||
|
||||
} else {
|
||||
let snackbarstring = get("managegroup.mg45")
|
||||
parentEpml.request('showSnackBar', `${snackbarstring}`)
|
||||
}
|
||||
this.joinGroup(res)
|
||||
}
|
||||
window.parent.reduxStore.dispatch(
|
||||
window.parent.reduxAction.setSideEffectAction(null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user