Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Nov 18, 2024
1 parent 1493a6b commit 066210f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
lerna-debug.log
*.log
c4/.structurizr
c4/workspace.json
.ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,8 @@ export class ConnectionsManagerService extends EventEmitter implements OnModuleI
ownerOrbitDbIdentity: payload.ownerOrbitDbIdentity,
}

const inviteData = payload.inviteData
// TODO: add back when QSS is implemented
// const inviteData = payload.inviteData
// if (inviteData) {
// this.logger.info(`Joining community: inviteData version: ${inviteData.version}`)
// switch (inviteData.version) {
Expand Down Expand Up @@ -652,7 +652,7 @@ export class ConnectionsManagerService extends EventEmitter implements OnModuleI
peerList: [...new Set([localAddress, ...metadata.peers])],
psk: metadata.psk,
ownerOrbitDbIdentity: metadata.ownerOrbitDbIdentity,
inviteData: null,
inviteData,
}

await this.localDbService.setCommunity(community)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { communities } from '@quiet/state-manager'
import { socketSelectors } from '../socket/socket.selectors'
import { ModalName } from '../modals/modals.types'
import { modalsActions } from '../modals/modals.slice'
import { argvInvitationCode } from '@quiet/common'
import { argvInvitationLink } from '@quiet/common'
import {
AlreadyBelongToCommunityWarning,
InvalidInvitationLinkError,
Expand Down Expand Up @@ -36,7 +36,7 @@ export function* customProtocolSaga(
let data: InvitationData | null

try {
data = argvInvitationCode(code)
data = argvInvitationLink(code)
} catch (e) {
logger.warn(e)
yield* put(
Expand Down

0 comments on commit 066210f

Please sign in to comment.