diff --git a/.env b/.env
index 5436a1ed..1b08a29c 100644
--- a/.env
+++ b/.env
@@ -1,2 +1,2 @@
-VITE_API_URL=https://peptide.chat/api
-# VITE_API_URL=http://local.revolt.chat:8000
+# VITE_API_URL=https://peptide.chat/api
+VITE_API_URL=http://local.revolt.chat:8000
diff --git a/src/components/common/messaging/MessageBox.tsx b/src/components/common/messaging/MessageBox.tsx
index 78c26981..2b2e0bfb 100644
--- a/src/components/common/messaging/MessageBox.tsx
+++ b/src/components/common/messaging/MessageBox.tsx
@@ -45,6 +45,7 @@ import AutoComplete, { useAutoComplete } from "../AutoComplete";
import { PermissionTooltip } from "../Tooltip";
import FilePreview from "./bars/FilePreview";
import ReplyBar from "./bars/ReplyBar";
+import { User } from "@styled-icons/boxicons-regular";
type Props = {
channel: Channel;
@@ -256,8 +257,8 @@ export default observer(({ channel }: Props) => {
);
}
-
- if (!channel.havePermission("SendMessage")) {
+ console.log(channel)
+ if (!channel.havePermission("SendMessage") && channel.recipient?.relationship == "Blocked" || channel.recipient?.relationship == "BlockedOther"){
return (
@@ -275,7 +276,6 @@ export default observer(({ channel }: Props) => {
);
}
-
// Push message content to draft.
const setMessage = useCallback(
(content?: string) => {