Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove message column on moderation console #32432

Merged
merged 12 commits into from
Jun 14, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ const ModerationConsoleTable: FC = () => {
>
{t('User')}
</GenericTableHeaderCell>,

<GenericTableHeaderCell
key='reportedMessage'
direction={sortDirection}
active={sortBy === 'reports.description'}
onClick={setSort}
sort='reports.description'
>
{t('Moderation_Reported_message')}
</GenericTableHeaderCell>,
<GenericTableHeaderCell key='room' direction={sortDirection}>
{t('Room')}
</GenericTableHeaderCell>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type ModerationConsoleRowProps = {
};

const ModerationConsoleTableRow = ({ report, onClick, isDesktopOrLarger }: ModerationConsoleRowProps): JSX.Element => {
const { userId: _id, rooms, name, count, message, username, ts } = report;
const { userId: _id, rooms, name, count, username, ts } = report;

const roomNames = rooms.map((room) => {
if (room.t === 'd') {
Expand All @@ -31,7 +31,6 @@ const ModerationConsoleTableRow = ({ report, onClick, isDesktopOrLarger }: Moder
<GenericTableCell withTruncatedText>
<UserColumn username={username} name={name} fontSize='micro' size={isDesktopOrLarger ? 'x20' : 'x40'} />
</GenericTableCell>
<GenericTableCell withTruncatedText>{message}</GenericTableCell>
<GenericTableCell withTruncatedText>{concatenatedRoomNames}</GenericTableCell>
<GenericTableCell withTruncatedText>{formatDateAndTime(ts)}</GenericTableCell>
<GenericTableCell withTruncatedText>{count}</GenericTableCell>
Expand Down
Loading