From 21d964935c51fd2cd3d2867896b6af4fdc3a2cc6 Mon Sep 17 00:00:00 2001 From: Michael Ilyin Date: Thu, 12 Dec 2024 16:43:36 +0100 Subject: [PATCH] feat: invoke usersCallback with an empty array on ChatSession reset --- zenoh-ts/examples/chat/src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zenoh-ts/examples/chat/src/main.ts b/zenoh-ts/examples/chat/src/main.ts index 01f8e47..d638a4a 100644 --- a/zenoh-ts/examples/chat/src/main.ts +++ b/zenoh-ts/examples/chat/src/main.ts @@ -113,6 +113,9 @@ class ChatSession { this.queryable = null; this.liveliness_subscriber = null; this.users = []; + if (this.usersCallback) { + this.usersCallback([]); + } } } }