Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -9,6 +9,7 @@ import { | ... | @@ -9,6 +9,7 @@ import { |
9 | } from "./ChatQueries"; | 9 | } from "./ChatQueries"; |
10 | import useInput from "../../Hooks/useInput"; | 10 | import useInput from "../../Hooks/useInput"; |
11 | import { toast } from "react-toastify"; | 11 | import { toast } from "react-toastify"; |
12 | +import defaultProfile from "../imgs/defaultProfile.jpg"; | ||
12 | 13 | ||
13 | export default withRouter(({ location }) => { | 14 | export default withRouter(({ location }) => { |
14 | const { pathname } = location; | 15 | const { pathname } = location; |
... | @@ -34,6 +35,10 @@ export default withRouter(({ location }) => { | ... | @@ -34,6 +35,10 @@ export default withRouter(({ location }) => { |
34 | variables: { roomId: roomNum }, | 35 | variables: { roomId: roomNum }, |
35 | }); | 36 | }); |
36 | if (messageList !== undefined) { | 37 | if (messageList !== undefined) { |
38 | + messageList.seeAllMessage.map((e) => { | ||
39 | + if (e.sender.avatarUrl === "") { | ||
40 | + } | ||
41 | + }); | ||
37 | messageArray = messageList; | 42 | messageArray = messageList; |
38 | } | 43 | } |
39 | 44 | ... | ... |
-
Please register or login to post a comment