mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-19 19:47:47 +00:00
Replaces smileys and the logic of replacing links/emails. (#3560)
* Replaces smileys and the logic of replacing links/emails. Now using react-emoji-render and react-linkify. * Fixes heart emoji. It is known that current implementation doesn't work with ascii emojis that contain < or >, like >:( >:-( </3 <\3 <3. Making those work may bring some xss issues. * Adds '_blank' and 'noopener noreferrer' to the replaced links. * Fixes package-lock links (http vs https). * Fixes comments.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import Emoji from 'react-emoji-render';
|
||||
|
||||
import { sendMessage } from '../actions';
|
||||
|
||||
@@ -99,9 +100,9 @@ class ChatInput extends Component<Props, State> {
|
||||
<div className = 'smiley-input'>
|
||||
<div id = 'smileysarea'>
|
||||
<div id = 'smileys'>
|
||||
<img
|
||||
<Emoji
|
||||
onClick = { this._onToggleSmileysPanel }
|
||||
src = 'images/smile.svg' />
|
||||
text = ':)' />
|
||||
</div>
|
||||
</div>
|
||||
<div className = { smileysPanelClassName }>
|
||||
|
||||
Reference in New Issue
Block a user