TheGreenPig / Apate

A BetterDiscord Plugin that allows End-to-End encryption and hiding messages in messages!
65 stars 17 forks source link

Use BdAPI Patcher and React components instead of an observer and DOM elements #27

Closed fabJunior closed 3 years ago

fabJunior commented 3 years ago

Rework of a big chunk of the Apate plugin to avoid the use of injecting HTML in the document and the use of an observer.

Instead, it patches the messages and creates a React Component.

class ApateMessage extends BdApi.React.Component {

This needs testing to make sure it's fully functional. Also maybe compare with the previous version if there is any performance change (bad or good)