Skip to content

Commit

Permalink
fix: Merge branch 'alpha' into alpha-deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Feb 8, 2024
2 parents bbf3ddf + d832ae3 commit feb77a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/pushapi/pushAPITypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export interface SpaceParticipantStatus {

export interface SpaceInitializeOptions {
spaceId: string;
setSpaceData: (fn: (data: SpaceData) => SpaceData) => void;
onChange: (fn: (data: SpaceData) => SpaceData) => void;
}

export interface VideoInitializeOptions {
Expand Down
4 changes: 2 additions & 2 deletions packages/restapi/src/lib/pushapi/space.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ export class Space {
}

async initialize(options: SpaceInitializeOptions): Promise<SpaceV2> {
const { setSpaceData, spaceId } = options;
const { onChange, spaceId } = options;

if (!this.signer) {
throw new Error('Signer is required for push space');
Expand All @@ -562,7 +562,7 @@ export class Space {
signer: this.signer!,
chainId,
pgpPrivateKey: this.decryptedPgpPvtKey!,
setSpaceData: setSpaceData,
setSpaceData: onChange,
address: this.account,
env: this.env,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/space/SpaceV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class SpaceV2 {
});
}

media({ video, audio }: { video?: boolean; audio?: boolean }) {
config({ video, audio }: { video?: boolean; audio?: boolean }) {
if (typeof video === 'boolean') {
this.spaceV1Instance.enableVideo({ state: video });
}
Expand Down

0 comments on commit feb77a9

Please sign in to comment.