Skip to content

Commit

Permalink
fix: hide category settings button + avoid random keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexogamer committed Jan 25, 2025
1 parent 6caf90b commit 66204f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/common/messaging/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,12 @@ export const Message = observer((props: MessageProps) => {
/>
);
})}
{props.message.embeds?.map(e => {
{props.message.embeds && props.message.embeds.map((e, i) => {
return (
<MessageEmbed
key={`message-${
props.message._id
}-embed-${Math.random()}`}
}-embed-${i}`}
embed={e}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const ChannelSettingsSection = observer(
</View>
</Pressable>
) : null} */}
<Pressable
{/* TODO: add category settings <Pressable
style={{
width: 30,
height: 20,
Expand All @@ -202,7 +202,7 @@ export const ChannelSettingsSection = observer(
color={currentTheme.foregroundPrimary}
/>
</View>
</Pressable>
</Pressable> */}
</View>
{cat.channels.map(c => (
<PressableSettingsEntry
Expand Down

0 comments on commit 66204f7

Please sign in to comment.