summaryrefslogtreecommitdiff
path: root/client-web/source/user.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source/user.ts')
-rw-r--r--client-web/source/user.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/client-web/source/user.ts b/client-web/source/user.ts
index bda875f..dbf2862 100644
--- a/client-web/source/user.ts
+++ b/client-web/source/user.ts
@@ -6,18 +6,13 @@ import { TrackHandle } from "./track_handle.ts";
export abstract class User {
- name: string
- room: Room
-
el: HTMLElement
local = false
protected tracks: Set<TrackHandle> = new Set()
- constructor(room: Room, name: string) {
- this.name = name
- this.room = room
+ constructor(public room: Room, public id: number, public name: string) {
this.el = document.createElement("div")
this.el.classList.add("user")
this.room.el.append(this.el)
@@ -60,7 +55,6 @@ export abstract class User {
if (this.local) media_el.muted = true
-
const el = document.createElement("div")
if (t.local) {
const end_button = document.createElement("button")