fix: remove self report

sus??
This commit is contained in:
Asraye
2025-09-15 02:51:35 +10:00
committed by GitHub
parent 41f47a1a3f
commit 06424452ef

View File

@@ -247,24 +247,27 @@ export const UserProfile = observer(
<UserX size={28} /> <UserX size={28} />
</IconButton> </IconButton>
)} )}
{!user.bot && flags != 2 && flags != 4 && ( {!user.bot &&
<Localizer> user._id !== client.user?._id &&
<Tooltip flags != 2 &&
content={ flags != 4 && (
<Text id="app.context_menu.report_user" /> <Localizer>
}> <Tooltip
<IconButton content={
onClick={() => <Text id="app.context_menu.report_user" />
modalController.push({
type: "report",
target: user,
})
}> }>
<Flag size={28} /> <IconButton
</IconButton> onClick={() =>
</Tooltip> modalController.push({
</Localizer> type: "report",
)} target: user,
})
}>
<Flag size={28} />
</IconButton>
</Tooltip>
</Localizer>
)}
</div> </div>
{badges > 0 && ( {badges > 0 && (
<div <div