diff options
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 |