diff --git a/src/component/Home Page/ShareTweetUser.jsx b/src/component/Home Page/ShareTweetUser.jsx index 1018c37..7394bad 100644 --- a/src/component/Home Page/ShareTweetUser.jsx +++ b/src/component/Home Page/ShareTweetUser.jsx @@ -10,7 +10,7 @@ import 'react-toastify/dist/ReactToastify.css'; import { io } from "socket.io-client"; import { ShareTweet } from "../../react-redux/actions/Tweets"; -const ENDPOINT = "https://tweeter-backend-7ngr.onrender.com"; +const ENDPOINT = "https://tweeter.devalan.tech/"; var socket, currentChattingWith; function ShareTweetUser(props) { diff --git a/src/component/Messages/Chats.jsx b/src/component/Messages/Chats.jsx index b8467c7..e8189a8 100644 --- a/src/component/Messages/Chats.jsx +++ b/src/component/Messages/Chats.jsx @@ -27,7 +27,7 @@ import SearchChatUser from "./SearchChatPopUp"; import deleteIcon from "../Assets/delete.svg"; // import { Socket } from "socket.io-client"; -const ENDPOINT = "https://tweeter-backend-7ngr.onrender.com"; +const ENDPOINT = "https://tweeter.devalan.tech/"; var socket, currentChattingWith; function Chats() { const [socketConnected, setSocketConnected] = useState(false); diff --git a/src/component/Messages/ScrollableChats.jsx b/src/component/Messages/ScrollableChats.jsx index 4175b0f..99601c3 100644 --- a/src/component/Messages/ScrollableChats.jsx +++ b/src/component/Messages/ScrollableChats.jsx @@ -96,14 +96,14 @@ function ScrollableChat(props) {

{chat.text}

{(chat.image != null && chat.image.startsWith("blob:")) ? ( image) : ( - chat.image != null ? (image) : null)} + chat.image != null ? (image) : null)} {(chat.video != null && chat.video.startsWith("blob:")) ? ( ) : ( chat.video != null ? () : null)} ) } @@ -113,14 +113,14 @@ function ScrollableChat(props) {

{chat.text}

{(chat.image != null && chat.image.startsWith("blob:")) ? ( image) : ( - chat.image != null ? (image) : null)} + chat.image != null ? (image) : null)} {(chat.video != null && chat.video.startsWith("blob:")) ? ( ) : ( chat.video != null ? () : null)} ) }