Skip to content

Commit

Permalink
v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
itzTheMeow committed Sep 30, 2023
1 parent 7c67f5f commit 27ce033
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions voice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.1.2

- Fixed error with undefined `client.user`.

# v0.0.6

- Fixed node stream stopping after 4 minutes.
4 changes: 2 additions & 2 deletions voice/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@revkit/voice",
"version": "0.1.1",
"version": "0.1.2",
"description": "Voice library for Revolt that works in the browser and node.js!",
"main": "dist/cjs/index.js",
"module": "dist/es6/index.js",
Expand Down Expand Up @@ -32,7 +32,7 @@
"mediasoup-client": "^3.6.84",
"msc-node": "^0.0.10",
"prism-media": "github:itzTheMeow/prism-media",
"revkit": "^1.1.8"
"revkit": "^1.1.12"
},
"devDependencies": {
"@types/node": "^20.1.1",
Expand Down
14 changes: 7 additions & 7 deletions voice/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions voice/src/VoiceClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ export class VoiceClient<
}),
]);

// this should really never happen
if (result.userId !== this.client.user.id)
// this should really never happen (unless client.user is undefined)
if (result.userId !== this.client.user?.id)
this.emit("error", new Error("Authenticated user ID does not match client user ID."));
await Promise.all(
Object.entries(room.users).map(async ([id, details]) => {
Expand Down

0 comments on commit 27ce033

Please sign in to comment.