diff --git a/src/components/common/AutoComplete.tsx b/src/components/common/AutoComplete.tsx index 2e840774..6f607b89 100644 --- a/src/components/common/AutoComplete.tsx +++ b/src/components/common/AutoComplete.tsx @@ -1,4 +1,3 @@ -import { SYSTEM_USER_ID } from "revolt.js"; import { Channel } from "revolt.js/dist/maps/Channels"; import { User } from "revolt.js/dist/maps/Users"; import styled, { css } from "styled-components"; @@ -159,7 +158,9 @@ export function useAutoComplete( } } - users = users.filter((x) => x._id !== SYSTEM_USER_ID); + users = users.filter( + (x) => x._id !== "00000000000000000000000000", + ); const matches = ( search.length > 0 diff --git a/src/components/common/messaging/attachments/MessageReply.tsx b/src/components/common/messaging/attachments/MessageReply.tsx index 266770cd..af8b512d 100644 --- a/src/components/common/messaging/attachments/MessageReply.tsx +++ b/src/components/common/messaging/attachments/MessageReply.tsx @@ -3,7 +3,6 @@ import { File } from "@styled-icons/boxicons-solid"; import { observer } from "mobx-react-lite"; import { useHistory } from "react-router-dom"; import { RelationshipStatus } from "revolt-api/types/Users"; -import { SYSTEM_USER_ID } from "revolt.js"; import { Channel } from "revolt.js/dist/maps/Channels"; import { Message } from "revolt.js/dist/maps/Messages"; import styled, { css } from "styled-components"; @@ -173,7 +172,7 @@ export const MessageReply = observer( ) : ( <> - {message.author_id === SYSTEM_USER_ID ? ( + {message.author_id === "00000000000000000000000000" ? ( ) : ( <> diff --git a/src/components/common/messaging/bars/ReplyBar.tsx b/src/components/common/messaging/bars/ReplyBar.tsx index 1b83430d..2f0fc52e 100644 --- a/src/components/common/messaging/bars/ReplyBar.tsx +++ b/src/components/common/messaging/bars/ReplyBar.tsx @@ -1,7 +1,6 @@ import { At, Reply as ReplyIcon } from "@styled-icons/boxicons-regular"; import { File, XCircle } from "@styled-icons/boxicons-solid"; import { observer } from "mobx-react-lite"; -import { SYSTEM_USER_ID } from "revolt.js"; import { Channel } from "revolt.js/dist/maps/Channels"; import { Message } from "revolt.js/dist/maps/Messages"; import styled from "styled-components"; @@ -150,7 +149,8 @@ export default observer(({ channel, replies, setReplies }: Props) => { )} - {message.author_id === SYSTEM_USER_ID ? ( + {message.author_id === + "00000000000000000000000000" ? ( ) : ( { ); } - if (message.author_id === SYSTEM_USER_ID) { + if (message.author_id === "00000000000000000000000000") { render.push(