Skip to content

Commit

Permalink
Build fix;
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen committed Oct 24, 2024
1 parent dd74a36 commit 33a2c41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const useCommunityChannel = (props?: {
}) => {
const { odinId, communityId, channelId } = props || {};
const dotYouClient = useDotYouClientContext();
const identity = dotYouClient.getIdentity();
const queryClient = useQueryClient();

const channelsQuery = useCommunityChannels({ odinId, communityId }).fetch;
Expand All @@ -28,10 +27,7 @@ export const useCommunityChannel = (props?: {
community: HomebaseFile<CommunityDefinition>;
channelName: string;
}) => {
const members = community.fileMetadata.appData.content.members.filter(
(recipient) => recipient !== identity
);
return await saveCommunityChannel(dotYouClient, community, members, channelName);
return await saveCommunityChannel(dotYouClient, community, channelName);
};

return {
Expand Down
6 changes: 3 additions & 3 deletions packages/js-lib/src/public/posts/PostEmojiReactionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ReactionFile } from '../../core/DriveData/File/DriveFileReactionTypes';
import { tryJsonParse } from '../../helpers/DataUtil';
import { GetTargetDriveFromChannelId } from './PostDefinitionProvider';
import { EmojiReactionSummary } from './PostReactionProvider';
import { RawReactionContent, ReactionContext } from './PostTypes';
import { ReactionContext } from './PostTypes';

interface ServerReactionsSummary {
reactions: { reactionContent: string; count: number }[];
Expand All @@ -23,7 +23,7 @@ const emojiRootTransit = '/transit/reactions';
const emojiRoot = '/drive/files/reactions';
export const saveEmojiReaction = async (
dotYouClient: DotYouClient,
emoji: RawReactionContent,
emoji: { body: string },
context: ReactionContext
): Promise<string> => {
const isLocal = context.odinId === dotYouClient.getIdentity();
Expand Down Expand Up @@ -57,7 +57,7 @@ export const saveEmojiReaction = async (

export const removeEmojiReaction = async (
dotYouClient: DotYouClient,
emoji: RawReactionContent,
emoji: { body: string; authorOdinId?: string | undefined },
context: ReactionContext
): Promise<string> => {
const isLocal = context.odinId === dotYouClient.getIdentity();
Expand Down

0 comments on commit 33a2c41

Please sign in to comment.