summaryrefslogtreecommitdiff
path: root/client-web/source/user.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-07 18:05:27 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-07 18:05:27 +0200
commit88241946e3144fede5c86f98d00bb723c1cc2761 (patch)
treeacd61d75fbd48d09ff76541ab15a9703d7c98652 /client-web/source/user.ts
parent3ce9a53e272dc556222bca747461b3ec24796912 (diff)
downloadkeks-meet-88241946e3144fede5c86f98d00bb723c1cc2761.tar
keks-meet-88241946e3144fede5c86f98d00bb723c1cc2761.tar.bz2
keks-meet-88241946e3144fede5c86f98d00bb723c1cc2761.tar.zst
compiler crash………
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")