mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
fix(session-sharing): show participant presence in member terminals (#1504)
This commit is contained in:
1 parent
0f6e48a95c
commit
4ed9b69aab
6 files changed
+114
-5
No files matched your search
@@ -417,6 +417,14 @@ describe("TerminalSessionManager - multiplayer participants", () => {
|
||||
expect(session?.detachTimeout).toBeNull();
|
||||
expect(session?.participants.size).toBe(1);
|
||||
expect(sessionManager.getParticipantForWs(session!, guestWs)).toBeNull();
|
||||
expect(
|
||||
JSON.parse(
|
||||
(ownerWs.send as ReturnType<typeof vi.fn>).mock.lastCall![0] as string,
|
||||
),
|
||||
).toMatchObject({
|
||||
type: "participants",
|
||||
participants: [{ isOwner: true }],
|
||||
});
|
||||
|
||||
sessionManager.destroySession(id);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user