Skip to content

Commit

Permalink
fix: discussion creation system message don't work
Browse files Browse the repository at this point in the history
  • Loading branch information
roienatan committed Nov 27, 2023
1 parent 5a0d784 commit 105b63a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export default function ChatComponent({
singleEmojiText: styles.singleEmojiText,
multipleEmojiText: styles.multipleEmojiText,
},
onFeedItemClick,
});
const {
chatMessagesData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
useDiscussionMessagesById,
useMarkFeedItemAsSeen,
} from "@/shared/hooks/useCases";
import { DirectParent, User } from "@/shared/models";
import { TextStyles } from "@/shared/hooks/useCases/useDiscussionMessagesById";
import { DirectParent, User } from "@/shared/models";

interface Options {
hasPermissionToHide: boolean;
Expand All @@ -28,8 +28,8 @@ interface Return {
}

export const useDiscussionChatAdapter = (options: Options): Return => {
const { hasPermissionToHide, textStyles, discussionId } = options;

const { hasPermissionToHide, textStyles, discussionId, onFeedItemClick } =
options;
const user = useSelector(selectUser());
const userId = user?.uid;
const { data: commonMembers, fetchCommonMembers } = useCommonMembers();
Expand All @@ -44,7 +44,8 @@ export const useDiscussionChatAdapter = (options: Options): Return => {
discussionId,
hasPermissionToHide,
users,
textStyles
textStyles,
onFeedItemClick,
});
const { markFeedItemAsSeen } = useMarkFeedItemAsSeen();

Expand Down

0 comments on commit 105b63a

Please sign in to comment.