summaryrefslogtreecommitdiff
path: root/client-web/source/user
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-09-09 18:03:53 +0200
committermetamuffin <metamuffin@disroot.org>2022-09-09 18:03:53 +0200
commitda9565272d63ada7384efef6339e8fb909dfcf79 (patch)
tree456fc960e4aa03e36239260bac60941aca57ba5f /client-web/source/user
parent16ca7642f959ff37716c5c11bc9ebde3a3ffd2d6 (diff)
downloadkeks-meet-da9565272d63ada7384efef6339e8fb909dfcf79.tar
keks-meet-da9565272d63ada7384efef6339e8fb909dfcf79.tar.bz2
keks-meet-da9565272d63ada7384efef6339e8fb909dfcf79.tar.zst
logging cleanup
Diffstat (limited to 'client-web/source/user')
-rw-r--r--client-web/source/user/mod.ts2
-rw-r--r--client-web/source/user/remote.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/user/mod.ts b/client-web/source/user/mod.ts
index cbe9468..b01dc16 100644
--- a/client-web/source/user/mod.ts
+++ b/client-web/source/user/mod.ts
@@ -15,7 +15,7 @@ export abstract class User {
private _name?: string
get name() { return this._name }
set name(n: string | undefined) { this._name = n; this.name_el.textContent = this.display_name }
- get display_name() { return this.name ?? `guest (${this.id})` }
+ get display_name() { return this.name ?? `unknown (${this.id})` }
constructor(public room: Room, public id: number) {
room.users.set(this.id, this)
diff --git a/client-web/source/user/remote.ts b/client-web/source/user/remote.ts
index 5774740..68dd08f 100644
--- a/client-web/source/user/remote.ts
+++ b/client-web/source/user/remote.ts
@@ -15,7 +15,7 @@ export class RemoteUser extends User {
super(room, id)
room.remote_users.set(this.id, this)
- log("usermodel", `added remote user: ${id}`)
+ log("usermodel", `added remote user: ${this.display_name}`)
this.peer = new RTCPeerConnection(RTC_CONFIG)
this.peer.onicecandidate = ev => {
if (!ev.candidate) return