ayn2op / discordo

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

Change message pointing logic to use IDs #434

Closed Retropaint closed 2 months ago

Retropaint commented 2 months ago

In relation to #407, and because regions already use them, message pointing logic should be changed from being index-based (via selectedMessage) to ID based. From there, all logic that points to a message (SelectNext/Prev, replies, etc) will get the proper one without the need to adjust selectedMessage manually (particularly on message creation and deletion).