aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/user
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-06-24 22:06:34 +0200
committermetamuffin <metamuffin@disroot.org>2023-06-24 22:06:34 +0200
commite3d056a8807d52f95b7df9537ce931925b00d98f (patch)
treec3610de295177346d50f995c8b2ab72f35324127 /client-web/source/user
parent94d1c689bb2923285e8ec988aa7dc270302f1e55 (diff)
downloadkeks-meet-e3d056a8807d52f95b7df9537ce931925b00d98f.tar
keks-meet-e3d056a8807d52f95b7df9537ce931925b00d98f.tar.bz2
keks-meet-e3d056a8807d52f95b7df9537ce931925b00d98f.tar.zst
rework ui design, broke a lot of stuff
Diffstat (limited to 'client-web/source/user')
-rw-r--r--client-web/source/user/mod.ts3
-rw-r--r--client-web/source/user/remote.ts3
2 files changed, 2 insertions, 4 deletions
diff --git a/client-web/source/user/mod.ts b/client-web/source/user/mod.ts
index e83c2e6..6bd177a 100644
--- a/client-web/source/user/mod.ts
+++ b/client-web/source/user/mod.ts
@@ -6,7 +6,6 @@
/// <reference lib="dom" />
import { ediv, epre, espan } from "../helper.ts";
-import { ROOM_CONTAINER } from "../index.ts";
import { Room } from "../room.ts";
export class User {
@@ -25,6 +24,6 @@ export class User {
this.name_el.classList.add("name")
info_el.append(this.name_el, this.stats_el)
this.el.append(info_el)
- ROOM_CONTAINER.append(this.el)
+ room.element.append(this.el)
}
} \ No newline at end of file
diff --git a/client-web/source/user/remote.ts b/client-web/source/user/remote.ts
index 5e81cf7..907dd50 100644
--- a/client-web/source/user/remote.ts
+++ b/client-web/source/user/remote.ts
@@ -7,7 +7,6 @@
import { RelayMessage } from "../../../common/packets.d.ts";
import { notify } from "../helper.ts";
-import { ROOM_CONTAINER } from "../index.ts"
import { log } from "../logger.ts"
import { PREFS } from "../preferences/mod.ts";
import { new_remote_resource, RemoteResource } from "../resource/mod.ts";
@@ -79,7 +78,7 @@ export class RemoteUser extends User {
log("usermodel", `remove remote user: ${this.display_name}`)
this.pc.close()
this.room.remote_users.delete(this.id)
- ROOM_CONTAINER.removeChild(this.el)
+ this.room.element.removeChild(this.el)
if (PREFS.notify_leave) notify(`${this.display_name} left`)
}
on_relay(message: RelayMessage) {