mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
fix: remove self report
sus??
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user