simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 Savoir-faire Linux Inc. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU Affero General Public License as |
| 6 | * published by the Free Software Foundation; either version 3 of the |
| 7 | * License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU Affero General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Affero General Public |
| 15 | * License along with this program. If not, see |
| 16 | * <https://www.gnu.org/licenses/>. |
| 17 | */ |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 18 | import { |
| 19 | Box, |
| 20 | ListItem, |
| 21 | ListItemAvatar, |
| 22 | ListItemIcon, |
| 23 | ListItemText, |
| 24 | Menu, |
| 25 | MenuItem, |
| 26 | Stack, |
| 27 | Typography, |
| 28 | } from '@mui/material'; |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 29 | import { Conversation } from 'jami-web-common'; |
| 30 | import { QRCodeCanvas } from 'qrcode.react'; |
| 31 | import { MouseEvent, useState } from 'react'; |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 32 | import { Trans } from 'react-i18next'; |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 33 | import Modal from 'react-modal'; |
| 34 | import { useNavigate, useParams } from 'react-router-dom'; |
| 35 | |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 36 | import { useAuthContext } from '../contexts/AuthProvider'; |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 37 | import { setRefreshFromSlice } from '../redux/appSlice'; |
| 38 | import { useAppDispatch } from '../redux/hooks'; |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 39 | import { apiUrl } from '../utils/constants'; |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 40 | import ConversationAvatar from './ConversationAvatar'; |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 41 | import { |
| 42 | AudioCallIcon, |
| 43 | BlockContactIcon, |
| 44 | CancelIcon, |
| 45 | ContactDetailsIcon, |
| 46 | MessageIcon, |
| 47 | RemoveContactIcon, |
| 48 | VideoCallIcon, |
| 49 | } from './SvgIcon'; |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 50 | |
| 51 | const cancelStyles: Modal.Styles = { |
| 52 | content: { |
| 53 | left: '94px', |
| 54 | width: '300px', |
| 55 | height: '220px', |
| 56 | background: '#FFFFFF 0% 0% no-repeat padding-box', |
| 57 | boxShadow: '3px 3px 7px #00000029', |
| 58 | borderRadius: '20px', |
| 59 | opacity: '1', |
| 60 | |
| 61 | textAlign: 'left', |
| 62 | font: 'normal normal normal 12px/26px Ubuntu', |
| 63 | letterSpacing: '0px', |
| 64 | color: '#000000', |
| 65 | }, |
| 66 | }; |
| 67 | |
| 68 | const contactDetailsStyles: Modal.Styles = { |
| 69 | content: { |
| 70 | left: '94px', |
| 71 | width: '450px', |
| 72 | height: '450px', |
| 73 | background: '#FFFFFF 0% 0% no-repeat padding-box', |
| 74 | boxShadow: '3px 3px 7px #00000029', |
| 75 | borderRadius: '20px', |
| 76 | opacity: '1', |
| 77 | |
| 78 | textAlign: 'left', |
| 79 | font: 'normal normal normal 12px/26px Ubuntu', |
| 80 | letterSpacing: '0px', |
| 81 | color: '#000000', |
| 82 | }, |
| 83 | }; |
| 84 | |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 85 | const iconColor = '#005699'; |
| 86 | |
| 87 | type ConversationListItemProps = { |
| 88 | conversation: Conversation; |
| 89 | }; |
| 90 | |
| 91 | export default function ConversationListItem({ conversation }: ConversationListItemProps) { |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 92 | const { token } = useAuthContext(); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 93 | const { conversationId, contactId } = useParams(); |
| 94 | const dispatch = useAppDispatch(); |
| 95 | |
| 96 | const pathId = conversationId || contactId; |
| 97 | const isSelected = conversation.getDisplayUri() === pathId; |
| 98 | const navigate = useNavigate(); |
| 99 | |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 100 | const [menuAnchorEl, setMenuAnchorEl] = useState<HTMLElement | null>(null); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 101 | const [modalDetailsIsOpen, setModalDetailsIsOpen] = useState(false); |
| 102 | const [modalDeleteIsOpen, setModalDeleteIsOpen] = useState(false); |
| 103 | const [blockOrRemove, setBlockOrRemove] = useState(true); |
simon | 416d079 | 2022-11-03 02:46:18 -0400 | [diff] [blame] | 104 | const [userId] = useState(conversation?.getFirstMember()?.contact.getUri()); |
| 105 | const [isSwarm] = useState(true); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 106 | |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 107 | const openMenu = (e: MouseEvent<HTMLDivElement>) => { |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 108 | e.preventDefault(); |
| 109 | console.log(e); |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 110 | setMenuAnchorEl(e.currentTarget); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 111 | }; |
| 112 | const openModalDetails = () => setModalDetailsIsOpen(true); |
| 113 | const openModalDelete = () => setModalDeleteIsOpen(true); |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 114 | const closeModal = () => setMenuAnchorEl(null); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 115 | const closeModalDetails = () => setModalDetailsIsOpen(false); |
| 116 | const closeModalDelete = () => setModalDeleteIsOpen(false); |
| 117 | |
| 118 | const getContactDetails = () => { |
| 119 | const controller = new AbortController(); |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 120 | fetch(new URL(`/contacts/${userId}`, apiUrl), { |
| 121 | signal: controller.signal, |
| 122 | headers: { |
| 123 | Authorization: `Bearer ${token}`, |
| 124 | }, |
| 125 | }) |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 126 | .then((res) => res.json()) |
| 127 | .then((result) => { |
| 128 | console.log('CONTACT LIST - DETAILS: ', result); |
| 129 | }) |
| 130 | .catch((e) => console.log('ERROR GET CONTACT DETAILS: ', e)); |
| 131 | }; |
| 132 | |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 133 | const removeOrBlock = (block = false) => { |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 134 | setBlockOrRemove(false); |
| 135 | |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 136 | console.log('EEEH', conversation.getAccountId(), userId); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 137 | |
| 138 | const controller = new AbortController(); |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 139 | let url = `/contacts/${userId}`; |
| 140 | if (block) { |
| 141 | url += '/block'; |
| 142 | } |
| 143 | fetch(new URL(url, apiUrl), { |
| 144 | signal: controller.signal, |
| 145 | method: block ? 'POST' : 'DELETE', |
| 146 | headers: { |
| 147 | Authorization: `Bearer ${token}`, |
| 148 | }, |
| 149 | }) |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 150 | .then((res) => res.json()) |
simon | 416d079 | 2022-11-03 02:46:18 -0400 | [diff] [blame] | 151 | .then(() => { |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 152 | console.log('propre'); |
| 153 | dispatch(setRefreshFromSlice()); |
| 154 | }) |
| 155 | .catch((e) => { |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 156 | console.log(`ERROR ${block ? 'blocking' : 'removing'} CONTACT : `, e); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 157 | dispatch(setRefreshFromSlice()); |
| 158 | }); |
| 159 | closeModalDelete(); |
| 160 | }; |
| 161 | |
simon | 3f5f3e7 | 2022-11-08 21:01:57 -0500 | [diff] [blame] | 162 | const uri = conversation.getId() ? `/conversation/${conversation.getId()}` : `/addContact/${userId}`; |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 163 | return ( |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 164 | <div onContextMenu={openMenu}> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 165 | <div> |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 166 | <Menu open={!!menuAnchorEl} onClose={closeModal} anchorEl={menuAnchorEl}> |
| 167 | <MenuItem |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 168 | onClick={() => { |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 169 | navigate(uri); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 170 | closeModal(); |
| 171 | }} |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 172 | > |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 173 | <ListItemIcon> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 174 | <MessageIcon style={{ color: iconColor }} /> |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 175 | </ListItemIcon> |
| 176 | <ListItemText> |
| 177 | <Trans i18nKey="conversation_message" /> |
| 178 | </ListItemText> |
| 179 | </MenuItem> |
| 180 | <MenuItem |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 181 | onClick={() => { |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 182 | navigate(`/account/call/${conversation.getId()}`); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 183 | }} |
| 184 | > |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 185 | <ListItemIcon> |
| 186 | <AudioCallIcon style={{ color: iconColor }} /> |
| 187 | </ListItemIcon> |
| 188 | <ListItemText> |
| 189 | <Trans i18nKey="conversation_start_audiocall" /> |
| 190 | </ListItemText> |
| 191 | </MenuItem> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 192 | |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 193 | <MenuItem |
| 194 | onClick={() => { |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 195 | navigate(`call/${conversation.getId()}?video=true`); |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 196 | }} |
| 197 | > |
| 198 | <ListItemIcon> |
| 199 | <VideoCallIcon style={{ color: iconColor }} /> |
| 200 | </ListItemIcon> |
| 201 | <ListItemText> |
| 202 | <Trans i18nKey="conversation_start_videocall" /> |
| 203 | </ListItemText> |
| 204 | </MenuItem> |
| 205 | |
| 206 | {isSelected && ( |
| 207 | <MenuItem |
| 208 | onClick={() => { |
simon | 3f5f3e7 | 2022-11-08 21:01:57 -0500 | [diff] [blame] | 209 | navigate(`/`); |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 210 | closeModal(); |
| 211 | }} |
| 212 | > |
| 213 | <ListItemIcon> |
| 214 | <CancelIcon style={{ color: iconColor }} /> |
| 215 | </ListItemIcon> |
| 216 | <ListItemText> |
| 217 | <Trans i18nKey="conversation_close" /> |
| 218 | </ListItemText> |
| 219 | </MenuItem> |
| 220 | )} |
| 221 | |
| 222 | <MenuItem |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 223 | onClick={() => { |
| 224 | console.log('open details contact for: '); |
| 225 | closeModal(); |
| 226 | openModalDetails(); |
| 227 | getContactDetails(); |
| 228 | }} |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 229 | > |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 230 | <ListItemIcon> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 231 | <ContactDetailsIcon style={{ color: iconColor }} /> |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 232 | </ListItemIcon> |
| 233 | <ListItemText> |
| 234 | <Trans i18nKey="conversation_details" /> |
| 235 | </ListItemText> |
| 236 | </MenuItem> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 237 | |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 238 | <MenuItem |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 239 | onClick={() => { |
| 240 | setBlockOrRemove(true); |
| 241 | closeModal(); |
| 242 | openModalDelete(); |
| 243 | }} |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 244 | > |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 245 | <ListItemIcon> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 246 | <BlockContactIcon style={{ color: iconColor }} /> |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 247 | </ListItemIcon> |
| 248 | <ListItemText> |
| 249 | <Trans i18nKey="conversation_block_contact" /> |
| 250 | </ListItemText> |
| 251 | </MenuItem> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 252 | |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 253 | <MenuItem |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 254 | onClick={() => { |
| 255 | setBlockOrRemove(false); |
| 256 | closeModal(); |
| 257 | openModalDelete(); |
| 258 | }} |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 259 | > |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 260 | <ListItemIcon> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 261 | <RemoveContactIcon style={{ color: iconColor }} /> |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 262 | </ListItemIcon> |
| 263 | <ListItemText> |
| 264 | <Trans i18nKey="conversation_delete_contact" /> |
| 265 | </ListItemText> |
| 266 | </MenuItem> |
| 267 | </Menu> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 268 | </div> |
| 269 | |
| 270 | <div> |
| 271 | <Modal |
| 272 | isOpen={modalDetailsIsOpen} |
| 273 | onRequestClose={closeModalDetails} |
| 274 | style={contactDetailsStyles} |
| 275 | contentLabel="Détails contact" |
| 276 | > |
| 277 | <Stack direction={'row'} alignContent="flex-end"> |
| 278 | <Stack direction={'column'}> |
| 279 | <div style={{ height: '100px' }}> |
| 280 | <ConversationAvatar displayName={conversation.getDisplayNameNoFallback()} /> |
| 281 | </div> |
| 282 | |
| 283 | <div |
| 284 | style={{ |
| 285 | fontSize: '20px', |
| 286 | marginBottom: '20px', |
| 287 | height: '20px', |
| 288 | }} |
| 289 | > |
| 290 | Informations |
| 291 | </div> |
| 292 | |
| 293 | <Typography variant="caption">Nom d'utilisateur</Typography> |
| 294 | <div style={{ height: '20px' }} /> |
| 295 | <Typography variant="caption">Identifiant </Typography> |
| 296 | <div style={{ height: '20px' }} /> |
| 297 | |
| 298 | <div |
| 299 | style={{ |
| 300 | flex: 1, |
| 301 | height: '150px', |
| 302 | flexDirection: 'column', |
| 303 | // alignSelf: "flex-end", |
| 304 | }} |
| 305 | > |
| 306 | <Typography variant="caption">Code QR</Typography> |
| 307 | </div> |
| 308 | |
| 309 | <Typography variant="caption">est un swarm </Typography> |
| 310 | </Stack> |
| 311 | |
| 312 | <Stack direction={'column'}> |
| 313 | <div |
| 314 | style={{ |
| 315 | fontWeight: 'bold', |
| 316 | fontSize: '20px', |
| 317 | height: '100px', |
| 318 | }} |
| 319 | > |
| 320 | {conversation.getDisplayNameNoFallback() + '(resolved name)'} |
| 321 | </div> |
| 322 | |
| 323 | <div |
| 324 | style={{ |
| 325 | height: '40px', |
| 326 | }} |
| 327 | /> |
| 328 | <Typography variant="caption"> |
| 329 | <div style={{ fontWeight: 'bold' }}>{conversation.getDisplayNameNoFallback()}</div> |
| 330 | </Typography> |
| 331 | |
| 332 | <div style={{ height: '20px' }} /> |
| 333 | |
| 334 | <Typography variant="caption"> |
| 335 | <div style={{ fontWeight: 'bold' }}> {userId}</div> |
| 336 | </Typography> |
| 337 | |
| 338 | <div style={{ height: '20px' }} /> |
| 339 | |
| 340 | <div> |
| 341 | <QRCodeCanvas size={40} value={`${userId}`} /> |
| 342 | </div> |
| 343 | |
| 344 | <Typography variant="caption"> |
simon | 1170c32 | 2022-10-31 14:51:31 -0400 | [diff] [blame] | 345 | <div style={{ fontWeight: 'bold' }}> {String(isSwarm)}</div> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 346 | </Typography> |
| 347 | </Stack> |
| 348 | </Stack> |
| 349 | <div |
| 350 | onClick={closeModalDetails} |
| 351 | style={{ |
| 352 | width: '100px', |
| 353 | borderStyle: 'solid', |
| 354 | textAlign: 'center', |
| 355 | borderRadius: '5px', |
| 356 | marginLeft: '150px', |
| 357 | marginTop: '10px', |
| 358 | }} |
| 359 | > |
| 360 | <Typography variant="caption">Fermer</Typography> |
| 361 | </div> |
| 362 | </Modal> |
| 363 | </div> |
| 364 | |
| 365 | <div> |
| 366 | <Modal |
| 367 | isOpen={modalDeleteIsOpen} |
| 368 | onRequestClose={closeModalDelete} |
| 369 | style={cancelStyles} |
| 370 | contentLabel="Merci de confirmer" |
| 371 | > |
| 372 | <Typography variant="h4">Merci de confirmer</Typography> |
| 373 | <Stack direction={'column'} justifyContent="space-around" spacing={'75px'}> |
| 374 | <div style={{ textAlign: 'center', marginTop: '10%' }}> |
| 375 | <Typography variant="body2"> |
| 376 | Voulez vous vraiment {blockOrRemove ? 'bloquer' : 'supprimer'} ce contact? |
| 377 | </Typography> |
| 378 | </div> |
| 379 | |
| 380 | <Stack direction={'row'} top={'25px'} alignSelf="center" spacing={1}> |
| 381 | <Box |
| 382 | onClick={() => { |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 383 | if (blockOrRemove) removeOrBlock(true); |
| 384 | else removeOrBlock(false); |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 385 | }} |
| 386 | style={{ |
| 387 | width: '100px', |
| 388 | textAlign: 'center', |
| 389 | borderStyle: 'solid', |
| 390 | borderColor: 'red', |
| 391 | borderRadius: '10px', |
| 392 | color: 'red', |
| 393 | }} |
| 394 | > |
| 395 | {blockOrRemove ? 'Bloquer' : 'Supprimer'} |
| 396 | </Box> |
| 397 | <Box |
| 398 | onClick={closeModalDelete} |
| 399 | style={{ |
| 400 | width: '100px', |
| 401 | textAlign: 'center', |
| 402 | paddingLeft: '12px', |
| 403 | paddingRight: '12px', |
| 404 | borderStyle: 'solid', |
| 405 | borderRadius: '10px', |
| 406 | }} |
| 407 | > |
| 408 | Annuler |
| 409 | </Box> |
| 410 | </Stack> |
| 411 | </Stack> |
| 412 | </Modal> |
| 413 | </div> |
| 414 | |
simon | 5da8ca6 | 2022-11-09 15:21:25 -0500 | [diff] [blame] | 415 | <ListItem button alignItems="flex-start" selected={isSelected} onClick={() => navigate(uri)}> |
simon | 575c940 | 2022-10-25 16:21:40 -0400 | [diff] [blame] | 416 | <ListItemAvatar> |
| 417 | <ConversationAvatar displayName={conversation.getDisplayNameNoFallback()} /> |
| 418 | </ListItemAvatar> |
| 419 | <ListItemText primary={conversation.getDisplayName()} secondary={conversation.getDisplayUri()} /> |
| 420 | </ListItem> |
| 421 | </div> |
| 422 | ); |
| 423 | } |