diff options
author | metamuffin <metamuffin@disroot.org> | 2024-04-27 20:22:56 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-04-27 20:23:02 +0200 |
commit | 8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb (patch) | |
tree | 3aaee4f66b05d05c01ca9044d656293a109ed8eb /client-web/source/user | |
parent | 959d2c9d7acea2cd7febcf1ab8ba5efd771c7713 (diff) | |
download | keks-meet-8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb.tar keks-meet-8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb.tar.bz2 keks-meet-8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb.tar.zst |
prototype stream previews
Diffstat (limited to 'client-web/source/user')
-rw-r--r-- | client-web/source/user/local.ts | 1 | ||||
-rw-r--r-- | client-web/source/user/remote.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/client-web/source/user/local.ts b/client-web/source/user/local.ts index a90a6f2..88e0852 100644 --- a/client-web/source/user/local.ts +++ b/client-web/source/user/local.ts @@ -64,6 +64,7 @@ export class LocalUser extends User { this.el.append(r.el) this.room.signaling.send_relay({ provide }) + if (r.set_room) r.set_room(this.room) r.set_destroy(() => { r.destroy() this.el.removeChild(r.el); diff --git a/client-web/source/user/remote.ts b/client-web/source/user/remote.ts index ad891bd..1b46b91 100644 --- a/client-web/source/user/remote.ts +++ b/client-web/source/user/remote.ts @@ -92,6 +92,8 @@ export class RemoteUser extends User { if (PREFS.notify_join) notify(PO.join_message(this.display_name).join("")) this.room.chat.add_control_message({ join: this }) } + if (message.preview) + this.resources.get(message.preview.id)?.on_preview(message.preview.data) if (message.provide) { const d = new_remote_resource(this, message.provide) if (!d) return |