mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
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>
|
||||||
<div style="display: flex; height: 100%; align-items: center">
|
<div style="display: flex; height: 100%; align-items: center">
|
||||||
${(!this.isReceipient && +this._chatId !== 0 && this.groupInfo.isOpen) ?
|
${(!this.isReceipient && +this._chatId !== 0) ?
|
||||||
html`
|
html`
|
||||||
<mwc-icon class="top-bar-icon" @click=${this.copyJoinGroupLinkToClipboard} style="margin: 0px 10px">link</mwc-icon>
|
<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'){
|
if(sideEffectAction && sideEffectAction.type === 'openJoinGroupModal'){
|
||||||
const res = await getGroupInfo(sideEffectAction.data)
|
const res = await getGroupInfo(sideEffectAction.data)
|
||||||
if(res && res.groupId){
|
if(res && res.groupId){
|
||||||
if(res.isOpen){
|
this.joinGroup(res)
|
||||||
this.joinGroup(res)
|
|
||||||
|
|
||||||
} else {
|
|
||||||
let snackbarstring = get("managegroup.mg45")
|
|
||||||
parentEpml.request('showSnackBar', `${snackbarstring}`)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
window.parent.reduxStore.dispatch(
|
window.parent.reduxStore.dispatch(
|
||||||
window.parent.reduxAction.setSideEffectAction(null)
|
window.parent.reduxAction.setSideEffectAction(null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user