Skip to content

fix: Prevent moderators from deleting others' chat messages in Breakout Rooms - #21564

Merged
gustavotrott merged 1 commit into
bigbluebutton:v3.0.x-releasefrom
gustavotrott:chat-validate-bkroom
Oct 30, 2024
Merged

gustavotrott merged 1 commit into
bigbluebutton:v3.0.x-releasefrom
gustavotrott:chat-validate-bkroom

Conversation

@gustavotrott

Copy link
Copy Markdown
Contributor

Deleting others' chat messages is not allowed in Breakout Rooms, as all participants are moderators.

image

@gustavotrott gustavotrott added this to the Release 3.0 milestone Oct 30, 2024
@coderabbitai

coderabbitai Bot commented Oct 30, 2024 •

Copy link
Copy Markdown
Contributor

Walkthrough

The pull request introduces modifications to the chat message handling logic within the BigBlueButton application, specifically focusing on the deletion permissions for chat messages. The DeleteGroupChatMessageReqMsgHdlr trait's handle method has been updated to restrict moderators from deleting messages in breakout rooms, adding a condition to the existing permission checks. In the front-end components, several new properties related to breakout rooms have been introduced, including isBreakout in the useMeeting hook and isBreakoutRoom in various component interfaces. These properties facilitate conditional rendering and logic adjustments in components such as ChatMessageList, ChatMessage, and ChatMessageToolbar, ensuring that the chat functionalities are appropriately adapted for breakout room contexts. The overall structure and error handling mechanisms within these components remain consistent with previous implementations, focusing primarily on enhancing the user experience regarding message deletion permissions in breakout rooms.

Possibly related PRs

Suggested reviewers

  • ramonlsouza

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@sonarqubecloud

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Outside diff range and nitpick comments (2)
bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/component.tsx (1)

472-472: LGTM with a minor documentation suggestion

The isBreakoutRoom prop is correctly passed and properly typed. Consider documenting the ChatListPage component's props interface to maintain TypeScript's type safety benefits.

Add a TypeScript interface for the ChatListPage props:

interface ChatListPageProps {
  firstPageToLoad: number;
  page: number;
  pageSize: number;
  setLastSender: (page: number, sender: string) => void;
  lastSenderPreviousPage?: string;
  chatId: string;
  markMessageAsSeen: (message: Message) => void;
  scrollRef: React.RefObject<HTMLElement>;
  focusedId: number | null;
  meetingDisablePublicChat: boolean;
  meetingDisablePrivateChat: boolean;
  currentUserDisablePublicChat: boolean;
  currentUserId: string;
  currentUserIsLocked: boolean;
  currentUserIsModerator: boolean;
  isBreakoutRoom: boolean;
  messageToolbarIsEnabled: boolean;
  chatDeleteEnabled: boolean;
  chatEditEnabled: boolean;
  chatReactionsEnabled: boolean;
  chatReplyEnabled: boolean;
  deleteReaction: (emoji: string, emojiId: string, chatId: string, messageId: string) => void;
  sendReaction: (emoji: string, emojiId: string, chatId: string, messageId: string) => void;
}
bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/component.tsx (1)

Line range hint 54-458: Consider updating tests

The changes look good, but we should ensure that the test coverage is maintained.

Please consider:

  1. Adding test cases for the ChatMessage component with isBreakoutRoom prop
  2. Updating existing test cases to include the new prop
  3. Adding test cases to verify the deletion restriction behavior in breakout rooms

Would you like me to help generate the test cases?

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between f530404 and 0f33c8e.

📒 Files selected for processing (5)
  • akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/groupchats/DeleteGroupChatMessageReqMsgHdlr.scala (1 hunks)
  • bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/component.tsx (2 hunks)
  • bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/component.tsx (3 hunks)
  • bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/message-toolbar/component.tsx (3 hunks)
  • bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/component.tsx (5 hunks)
🔇 Additional comments (13)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/groupchats/DeleteGroupChatMessageReqMsgHdlr.scala (2)

57-59: LGTM! The permission check correctly implements the breakout room restriction.

The implementation successfully prevents moderators from deleting others' messages in breakout rooms while maintaining existing permissions in regular meetings. This aligns perfectly with the PR objectives.


57-59: Verify related components for consistent behavior.

Let's ensure this change is consistently implemented across the codebase.

✅ Verification successful

Breakout room message deletion restriction is consistently implemented

The verification shows that the breakout room message deletion restriction is properly implemented in the main handler DeleteGroupChatMessageReqMsgHdlr. The related message handler for reactions (DeleteGroupChatMessageReactionReqMsgHdlr) follows a similar pattern of permission checks but doesn't need the breakout room check as it handles a different use case. The message definitions and event handlers are properly defined in the common messages file.

  • The implementation in DeleteGroupChatMessageReqMsgHdlr correctly restricts moderator message deletion in breakout rooms
  • Message definitions in GroupChatMsg.scala properly support this functionality
  • No inconsistencies found in the implementation across the codebase
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for other message deletion handlers and related components

# Check for other message deletion handlers
echo "Checking for other message deletion handlers..."
rg -l "DeleteGroupChatMessage" --type scala

# Check for related front-end components
echo "Checking for related chat components..."
rg -l "ChatMessage.*delete" --type typescript --type javascript

# Check for breakout room related logic in chat components
echo "Checking for breakout room checks in chat components..."
rg "isBreakout.*chat" --type typescript --type javascript

Length of output: 1203


Script:

#!/bin/bash
# Let's examine the implementation details of message deletion handlers

# Check DeleteGroupChatMessageReqMsgHdlr implementation
echo "Checking DeleteGroupChatMessageReqMsgHdlr implementation..."
rg -A 10 "DeleteGroupChatMessageReqMsg" akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/groupchats/DeleteGroupChatMessageReqMsgHdlr.scala

# Check DeleteGroupChatMessageReactionReqMsgHdlr implementation
echo "Checking DeleteGroupChatMessageReactionReqMsgHdlr implementation..."
rg -A 10 "DeleteGroupChatMessageReactionReqMsg" akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/groupchats/DeleteGroupChatMessageReactionReqMsgHdlr.scala

# Check GroupChatHdlrs for any additional message deletion logic
echo "Checking GroupChatHdlrs implementation..."
rg -A 5 "DeleteGroupChatMessage" akka-bbb-apps/src/main/scala/org/bigbluebutton/core/apps/groupchats/GroupChatHdlrs.scala

# Check message definitions
echo "Checking message definitions..."
rg -A 5 "DeleteGroupChatMessage" bbb-common-message/src/main/scala/org/bigbluebutton/common2/msgs/GroupChatMsg.scala

Length of output: 4186

bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/message-toolbar/component.tsx (3)

54-54: LGTM: Clean interface extension

The addition of isBreakoutRoom boolean property is well-typed and appropriately placed in the interface.


74-74: LGTM: Proper props destructuring

The isBreakoutRoom prop is correctly destructured and well-placed alongside related moderator properties.


114-114: LGTM: Delete permission logic correctly implemented

The condition own || (amIModerator && !isBreakoutRoom) properly implements the requirement to prevent moderators from deleting others' messages in breakout rooms while still allowing users to delete their own messages.

Let's verify that this is the only place where delete permissions are checked:

✅ Verification successful

Delete permission logic is correctly isolated and consistent

The verification confirms that the delete permission check is properly implemented only in the message toolbar component, with the required props (chatDeleteEnabled, amIModerator, isBreakoutRoom) being correctly passed down through the component hierarchy. The logic is not duplicated elsewhere in the codebase, maintaining a single source of truth for delete permissions.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for other potential delete permission checks in chat-related files
rg -l "amIModerator.*delete|delete.*amIModerator" --type ts --type tsx

Length of output: 100


Script:

#!/bin/bash
# Search for delete permission checks without file type restrictions
rg -l "amIModerator.*delete|delete.*amIModerator"

# Also search for general delete permission patterns
rg -l "chatDeleteEnabled|canDelete|deleteMessage"

# Search for any moderator-related checks in chat components
rg -l "amIModerator.*\&\&|isBreakoutRoom" "bigbluebutton-html5/imports/ui/components/chat"

Length of output: 1488


Script:

#!/bin/bash
# Let's check the actual implementation in these files to ensure consistent delete permission logic
rg "chatDeleteEnabled|canDelete|deleteMessage" -A 2 -B 2 bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/component.tsx bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/component.tsx bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-header/chat-actions/services.ts

# Also check for any other moderator permission checks in chat components
rg "amIModerator.*\&\&|isBreakoutRoom" -A 2 -B 2 bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/component.tsx

Length of output: 10673

bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/component.tsx (4)

46-46: LGTM: Interface extension is well-structured.

The addition of isBreakoutRoom boolean property to ChatListPageCommonProps is clean and follows TypeScript best practices. This ensures proper type inheritance across the component hierarchy.


267-267: LGTM: Prop passing is consistent.

The isBreakoutRoom prop is correctly passed to the ChatMessage component, maintaining consistency with the existing pattern of feature flag propagation.


301-301: LGTM: Container implementation is consistent.

The isBreakoutRoom prop is correctly destructured and forwarded to the MemoizedChatListPage component, maintaining a clean and consistent implementation pattern.

Also applies to: 357-357


Line range hint 267-276: Verify the implementation in ChatMessage component.

While the isBreakoutRoom prop is correctly passed down, we should verify that the ChatMessage component properly uses this prop to prevent moderators from deleting others' messages in breakout rooms.

✅ Verification successful

Implementation correctly prevents moderators from deleting messages in breakout rooms

The verification confirms that the isBreakoutRoom prop is properly used to restrict message deletion in breakout rooms. In message-toolbar/component.tsx, the delete button's visibility is controlled by this logic:

const showDeleteButton = chatDeleteEnabled && (own || (amIModerator && !isBreakoutRoom));

This ensures that in breakout rooms (isBreakoutRoom is true):

  • Users can only delete their own messages (own)
  • Moderators cannot delete other users' messages (amIModerator && !isBreakoutRoom evaluates to false)
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that ChatMessage component uses isBreakoutRoom prop for message deletion logic

# Test: Search for ChatMessage component implementation
ast-grep --pattern $'const ChatMessage = ({
  $$$
  isBreakoutRoom,
  $$$
}) => {
  $$$
}'

# Test: Search for message deletion logic in ChatMessage or related components
rg -l "isBreakoutRoom.*delete" --type ts --type tsx

Length of output: 173


Script:

#!/bin/bash
# Let's try a different approach to find the ChatMessage component and its usage of isBreakoutRoom

# Find ChatMessage component file
fd "ChatMessage" --type f --extension tsx --extension ts

# Search for isBreakoutRoom usage in deletion context with proper file type
rg "isBreakoutRoom" --type typescript --type tsx -C 3

# Search for any deletion logic in ChatMessage
rg "delete.*message" --type typescript --type tsx -C 3

Length of output: 339


Script:

#!/bin/bash
# Let's try one more time with correct ripgrep file types

# Find all files containing ChatMessage
rg -l "ChatMessage" --type ts --type-add 'ts:*.{ts,tsx}'

# Look for isBreakoutRoom usage
rg "isBreakoutRoom" --type ts --type-add 'ts:*.{ts,tsx}' -C 3

# Look for message deletion logic
rg "handleDelete.*message|onDelete.*message" --type ts --type-add 'ts:*.{ts,tsx}' -C 3

Length of output: 19182

bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/component.tsx (2)

204-204: LGTM: Clean addition of breakout room detection

The addition of isBreakout property is well-placed within the existing meeting data destructuring and aligns with the PR's objective.


472-472: Verify the complete implementation of breakout room message deletion restriction

While the changes correctly add breakout room detection, let's verify that this property is properly utilized to prevent message deletion.

✅ Verification successful

Verification complete: Breakout room message deletion restriction is properly implemented

The code shows that the isBreakoutRoom property is correctly used to restrict message deletion in breakout rooms. Specifically, in the message toolbar component, there's a clear condition:

const showDeleteButton = chatDeleteEnabled && (own || (amIModerator && !isBreakoutRoom));

This ensures that:

  • Users can always delete their own messages (own)
  • Moderators can delete messages only in the main room (amIModerator && !isBreakoutRoom)
  • Moderators cannot delete messages in breakout rooms
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for usage of isBreakoutRoom in chat message components
echo "Searching for isBreakoutRoom usage in chat message deletion logic..."
rg -l "isBreakoutRoom.*delete" --type typescript

# Search for the chat message toolbar component that likely contains the deletion logic
echo "Searching for ChatMessageToolbar component..."
rg -l "ChatMessageToolbar" --type typescript

Length of output: 413


Script:

#!/bin/bash
# Search for usage of isBreakoutRoom in chat message components without file type restriction
echo "Searching for isBreakoutRoom usage in chat message deletion logic..."
rg "isBreakoutRoom.*delete"

# Search for files containing ChatMessageToolbar
echo "Searching for ChatMessageToolbar component..."
fd ChatMessageToolbar

# Search for deletion logic in chat components
echo "Searching for message deletion logic..."
rg "deleteMessage|handleDeleteMessage" -A 5

Length of output: 9626


Script:

#!/bin/bash
# Search for the message toolbar component implementation to find deletion logic
echo "Searching for message toolbar implementation..."
rg -A 10 "handleDeleteMessage|onDeleteMessage" bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/message-toolbar/component.tsx

# Search for any conditions related to breakout rooms in the message toolbar
echo "Searching for breakout room conditions in message toolbar..."
rg -A 5 "isBreakout|breakoutRoom" bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/message-toolbar/component.tsx

# Search for the props interface of the message toolbar to verify isBreakoutRoom prop
echo "Searching for message toolbar props interface..."
ast-grep --pattern 'interface $_Props {
  $$$
}'  bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/message-toolbar/component.tsx

Length of output: 1703

bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-list/page/chat-message/component.tsx (2)

135-135: LGTM!

The isBreakoutRoom prop is correctly destructured from the component props.


458-458: Verify ChatMessageToolbar implementation

The isBreakoutRoom prop is correctly passed to ChatMessageToolbar. Let's verify that the ChatMessageToolbar component properly implements the deletion restriction logic.

✅ Verification successful

Verification successful: ChatMessageToolbar correctly implements deletion restriction in breakout rooms

The implementation in message-toolbar/component.tsx correctly handles the isBreakoutRoom prop to restrict message deletion. The key line of code shows:

const showDeleteButton = chatDeleteEnabled && (own || (amIModerator && !isBreakoutRoom));

This ensures that:

  • Message deletion is only available when chatDeleteEnabled is true
  • Users can only delete their own messages (own)
  • Moderators can delete others' messages, but not in breakout rooms (amIModerator && !isBreakoutRoom)
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that ChatMessageToolbar component properly handles isBreakoutRoom prop
# Expected: Find the implementation that uses isBreakoutRoom to restrict message deletion

# Search for ChatMessageToolbar component definition
echo "Searching for ChatMessageToolbar component..."
ast-grep --pattern 'const ChatMessageToolbar = $_'

# Search for isBreakoutRoom usage within the component
echo "Searching for isBreakoutRoom usage..."
rg "isBreakoutRoom.*delete" -A 5

Length of output: 15723


Script:

#!/bin/bash
# Let's try a different approach to find the ChatMessageToolbar component and its usage of isBreakoutRoom

# Search for ChatMessageToolbar component in the specific directory
echo "Searching for ChatMessageToolbar component in chat directory..."
rg -l "ChatMessageToolbar" bigbluebutton-html5/imports/ui/components/chat/

# Once we find the file, let's look for isBreakoutRoom prop usage
echo "Searching for isBreakoutRoom prop usage in the component..."
rg "isBreakoutRoom" bigbluebutton-html5/imports/ui/components/chat/ -A 5

# Let's also search for any delete-related functionality in chat components
echo "Searching for delete-related functionality..."
rg "delete.*message" bigbluebutton-html5/imports/ui/components/chat/ -A 5

Length of output: 22152

Comment on lines +57 to +59
if (userIsOwner ||
(userIsModerator && !liveMeeting.props.meetingProp.isBreakout) //not allowed in breakoutRooms as everyone is moderator
) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider improving readability by extracting permission logic.

While the implementation is correct, the permission check could be more readable by extracting the conditions into well-named variables.

Consider this refactoring:

-            if (userIsOwner ||
-              (userIsModerator && !liveMeeting.props.meetingProp.isBreakout) //not allowed in breakoutRooms as everyone is moderator
-              ) {
+            val canDeleteAsModeratorInRegularMeeting = userIsModerator && !liveMeeting.props.meetingProp.isBreakout
+            if (userIsOwner || canDeleteAsModeratorInRegularMeeting) {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if (userIsOwner ||
(userIsModerator && !liveMeeting.props.meetingProp.isBreakout) //not allowed in breakoutRooms as everyone is moderator
) {
val canDeleteAsModeratorInRegularMeeting = userIsModerator && !liveMeeting.props.meetingProp.isBreakout
if (userIsOwner || canDeleteAsModeratorInRegularMeeting) {

currentUserDisablePublicChat,
currentUserIsLocked,
currentUserIsModerator,
isBreakoutRoom,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add isBreakoutRoom to propsToCompare array.

The isBreakoutRoom prop should be included in the propsToCompare array to ensure proper memoization and prevent unnecessary re-renders.

Apply this diff:

const propsToCompare = [
  'focusedId',
  'meetingDisablePublicChat',
  'meetingDisablePrivateChat',
  'currentUserDisablePublicChat',
  'currentUserId',
  'currentUserIsLocked',
  'currentUserIsModerator',
  'chatDeleteEnabled',
  'chatEditEnabled',
  'chatReactionsEnabled',
  'chatReplyEnabled',
+ 'isBreakoutRoom',
] as const;

Committable suggestion was skipped due to low confidence.

currentUserIsLocked: boolean;
currentUserId: string;
currentUserDisablePublicChat: boolean;
isBreakoutRoom: boolean;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add isBreakoutRoom to propsToCompare array

The isBreakoutRoom property has been correctly added to the ChatMessageProps interface. However, it should also be added to the propsToCompare array to ensure proper memoization.

Add the property to the propsToCompare array:

const propsToCompare = [
  'meetingDisablePublicChat',
  'meetingDisablePrivateChat',
  'currentUserDisablePublicChat',
  'currentUserId',
  'currentUserIsLocked',
  'currentUserIsModerator',
+ 'isBreakoutRoom',
  'chatDeleteEnabled',
  'chatEditEnabled',
  'chatReactionsEnabled',
  'chatReplyEnabled',
  'focused',
  'keyboardFocused',
  'message.createdAt',
  'message.message',
  'message.recipientHasSeen',
  'message.user.currentlyInMeeting',
  'message.reactions.length',
  'message.replyToMessage.message',
] as const;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
isBreakoutRoom: boolean;
const propsToCompare = [
'meetingDisablePublicChat',
'meetingDisablePrivateChat',
'currentUserDisablePublicChat',
'currentUserId',
'currentUserIsLocked',
'currentUserIsModerator',
'isBreakoutRoom',
'chatDeleteEnabled',
'chatEditEnabled',
'chatReactionsEnabled',
'chatReplyEnabled',
'focused',
'keyboardFocused',
'message.createdAt',
'message.message',
'message.recipientHasSeen',
'message.user.currentlyInMeeting',
'message.reactions.length',
'message.replyToMessage.message',
] as const;

@github-actions

Copy link
Copy Markdown

Automated tests Summary

✅ All the CI tests have passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants