ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.25k stars 70 forks source link

Handle messages individually #444

Open Retropaint opened 1 month ago

Retropaint commented 1 month ago

Currently, messages are rendered using a single tview.TextView. Since TextViews do not support editing its own text, any updates to messages can only be done by updating it all over again. This has 2 issues that, while not major now, will cause problems as the project grows in complexity:

Proposal: Create a new tview Primitive for handling and rendering messages. Here's how it will fix the above issues:

ayn2op commented 1 month ago

Related: https://github.com/rivo/tview/wiki/Primitives