-
Notifications
You must be signed in to change notification settings - Fork 13k
feat: Add "Direct Message" button to Media Call widget #38169
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ddcd361
Implement useGoToDirectMessage
gabriellsh a48387a
Update useDirectMessageAction usage and replace where necessary
gabriellsh 365d0ed
remove commented import
gabriellsh 89ca8b4
fix undefined username
gabriellsh 7258f73
implement usemediaCallOpenRoomTracker
gabriellsh 0660b34
Track current open room
gabriellsh 98df37e
Add "go to room" button to widget
gabriellsh 813677a
Create eighty-weeks-rush.md
gabriellsh 48b32d3
fix snapshots
gabriellsh e7813ca
Fix ts
gabriellsh 3ab4926
Update .changeset/eighty-weeks-rush.md
tassoevan 5a6ff16
Merge branch 'develop' into feat/widgetGoToRoom
dougfabris e842af7
Update packages/ui-voip/src/context/MediaCallProvider.tsx
gabriellsh afcbedd
Merge branch 'develop' into feat/widgetGoToRoom
kodiakhq[bot] 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| "@rocket.chat/meteor": patch | ||
| "@rocket.chat/ui-client": patch | ||
| "@rocket.chat/ui-voip": patch | ||
| --- | ||
|
|
||
| Introduces in the call widget a quick link that redirects to the participant's direct message |
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
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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| export * from './useDevicePermissionPrompt'; | ||
| export { useDraggable } from './VoipPopupDraggable/DraggableCore'; | ||
| export { useMediaCallAction } from './useMediaCallAction'; | ||
| export { useMediaCallOpenRoomTracker } from './useMediaCallOpenRoomTracker'; |
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,17 @@ | ||
| import { useEffect } from 'react'; | ||
|
|
||
| import { useMediaCallExternalContext } from '../context/MediaCallContext'; | ||
|
|
||
| export const useMediaCallOpenRoomTracker = (openRoomId?: string) => { | ||
| const { setOpenRoomId } = useMediaCallExternalContext(); | ||
|
|
||
| useEffect(() => { | ||
| if (!setOpenRoomId) { | ||
| return; | ||
| } | ||
| setOpenRoomId(openRoomId); | ||
| return () => { | ||
| setOpenRoomId(undefined); | ||
| }; | ||
| }, [setOpenRoomId, openRoomId]); | ||
| }; |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.