How to use the tinode-sdk.Drafty.format function in tinode-sdk

To help you get started, we’ve selected a few tinode-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tinode / webapp / src / widgets / chat-message.jsx View on Github external
if (att.mime == 'application/json') {
          // Don't show json objects as attachments.
          // They are not meant for users.
          return;
        }
        attachments.push();
      }, this);
      content = React.createElement('span', null, Drafty.format(content, draftyFormatter, this));
    } else if (typeof content != 'string') {
      content = &lt;&gt;<i>error_outline</i> <i>
        
      </i>
    }

    return (
      <li>
        {this.props.userFrom &amp;&amp; this.props.response ?
          <div>
            {fullDisplay ?
               :</div></li>