Skip to content

Commit

Permalink
Fix display of received contacts - fix #38
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Jun 13, 2024
1 parent 54cb7fe commit f656d38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/components/MessagesList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,9 @@ const MessagesList = ({ ticket, ticketId, isGroup }) => {
};

const vCard = (message) => {
const name = message?.substring(message.indexOf("N:;") + 3, message.indexOf(";;;"))
const description = message?.substring(message.indexOf("TION:") + 5, message.indexOf("TEL"))
const name = message?.substring(message.indexOf("\nN:;") + 4, message.indexOf(";;;"));
const telLine = message?.substring(message.indexOf("\nTEL;") + 5);
const description = telLine.substring(telLine.indexOf(":") + 1, telLine.indexOf("\n"));
return (
<div>
<div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', marginTop: 20, marginBottom: 20 }}>
Expand Down Expand Up @@ -668,7 +669,7 @@ const MessagesList = ({ ticket, ticketId, isGroup }) => {

</div>
<div style={{
width: '100%', display: 'flex',
width: '100%', display: 'none',
justifyContent: 'center',
alignItems: 'center',
marginTop: 20,
Expand Down

0 comments on commit f656d38

Please sign in to comment.