dm non friend
parent
6742ea390b
commit
e954c31eba
4
.env
4
.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
|
||||
|
|
|
|||
|
|
@ -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) => {
|
|||
</Base>
|
||||
);
|
||||
}
|
||||
|
||||
if (!channel.havePermission("SendMessage")) {
|
||||
console.log(channel)
|
||||
if (!channel.havePermission("SendMessage") && channel.recipient?.relationship == "Blocked" || channel.recipient?.relationship == "BlockedOther"){
|
||||
return (
|
||||
<Base>
|
||||
<Blocked>
|
||||
|
|
@ -275,7 +276,6 @@ export default observer(({ channel }: Props) => {
|
|||
</Base>
|
||||
);
|
||||
}
|
||||
|
||||
// Push message content to draft.
|
||||
const setMessage = useCallback(
|
||||
(content?: string) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue