Skip to content

Commit

Permalink
feat: invoke usersCallback with an empty array on ChatSession reset
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Dec 12, 2024
1 parent fa23924 commit 21d9649
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zenoh-ts/examples/chat/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ class ChatSession {
this.queryable = null;
this.liveliness_subscriber = null;
this.users = [];
if (this.usersCallback) {
this.usersCallback([]);
}
}
}
}
Expand Down

0 comments on commit 21d9649

Please sign in to comment.