4
1
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:
AlphaX-Projects 2024-04-03 11:02:30 +02:00 committed by GitHub
commit 70e4feb15b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 8 deletions

View File

@ -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>
`

View File

@ -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)