ayn2op / discordo

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

fix: highlight messages using mouse #441

Closed b2ag closed 2 months ago

b2ag commented 2 months ago

Hi,

this should synchronize message selections done by mouse with the keyboard way of selecting messages. Thanks to the recent rework of the logic in the keyboard selection, it was quite easy to implement now.

It sets messagesText.selectedMessageID after it already was set in messagesText._select. So it's done twice for keyboard inputs. I couldn't be bothered to change something about it though as it doesn't affect functionality. Maybe it has some potential for weird race conditions. :shrug:

Best,