forked from jitsi/jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 1
[PB-6385] Keep userID from joinCall in sessionStorage #236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
TamaraFinogina
wants to merge
19
commits into
main
Choose a base branch
from
kickout_works
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0bfe1bb
keep userID from joinCall in sessionStorage
TamaraFinogina 116c7c4
add notification with jitsi style
TamaraFinogina 3c3a334
add missing file
TamaraFinogina 3a21969
add react
TamaraFinogina 4ca6044
fix typos
TamaraFinogina 379d28d
Merge pull request #240 from internxt/kickedout_notification
TamaraFinogina 5b21288
fix name change, update logo
TamaraFinogina 1a70b88
fix apple-touch-icon 404 error
TamaraFinogina ef5cfaf
copy chunks if they are build
TamaraFinogina c6050e2
add tests
TamaraFinogina 8581d10
change icon to the one with round edges
TamaraFinogina 1f40dae
try small icon
TamaraFinogina c65ebcd
fix reactDom is depricated error
TamaraFinogina e39cb32
fix tests namings
TamaraFinogina 2faf66d
change it for test
TamaraFinogina 0c93040
Merge pull request #241 from internxt/fix_display_name
TamaraFinogina aa435ed
update depecated icons
TamaraFinogina de9d9c3
fix more deprecated icons
TamaraFinogina d28c0b0
Merge pull request #242 from internxt/fix_reactdom_error
TamaraFinogina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { beforeEach, describe, expect, test, vi } from "vitest"; | ||
| import { LocalStorageManager } from "./LocalStorageManager"; | ||
|
|
||
| const MOCK_DISPlAY_NAME = "mock-display-name"; | ||
| const key = (LocalStorageManager as any)['KEYS']?.DISPLAY_NAME; | ||
|
|
||
| describe("LocalStorageManager tests", () => { | ||
| beforeEach(() => { | ||
| localStorage.clear(); | ||
| vi.clearAllMocks(); | ||
| }); | ||
|
|
||
| test("when local storage is called repeatedly, then the same instance is returned", () => { | ||
| const a = LocalStorageManager.instance; | ||
| const b = LocalStorageManager.instance; | ||
| expect(a).toBe(b); | ||
| }); | ||
|
|
||
| test("when no display name is stored, then returns underfined", () => { | ||
| expect(LocalStorageManager.instance.getDisplayName()).toBeUndefined(); | ||
| }); | ||
|
|
||
| test("when display name is stored, then returns it", () => { | ||
| LocalStorageManager.instance.setDisplayName(MOCK_DISPlAY_NAME); | ||
| expect(LocalStorageManager.instance.getDisplayName()).toBe(MOCK_DISPlAY_NAME); | ||
| }); | ||
|
|
||
| test("when the stored display name was modified, then returns the last modification", () => { | ||
| LocalStorageManager.instance.setDisplayName(MOCK_DISPlAY_NAME); | ||
| const modifiedName = 'new-display-name'; | ||
| localStorage.setItem(key, modifiedName); | ||
| expect(LocalStorageManager.instance.getDisplayName()).toBe(modifiedName); | ||
| }); | ||
|
|
||
| test("when display name is saved in the local storage, then it does not bleed into the session storage", () => { | ||
| LocalStorageManager.instance.setDisplayName(MOCK_DISPlAY_NAME); | ||
| expect(sessionStorage.getItem(key)).toBeNull(); | ||
| }); | ||
|
|
||
| test("when local storage is cleaned, then display name becomes underfined", () => { | ||
| LocalStorageManager.instance.setDisplayName(MOCK_DISPlAY_NAME); | ||
| LocalStorageManager.instance.clearCredentials(); | ||
| expect(LocalStorageManager.instance.getDisplayName()).toBeUndefined(); | ||
| }); | ||
|
|
||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this causes an error, does the web crash?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but the server gets to do checks and log errors. If the user reloads before joining the call, leaveCall is dispatched, but it has no user ID, so technically no need for the call