imnaK / quantum

A "Better Discord" plugin for message encryption/decryption
GNU General Public License v3.0
3 stars 0 forks source link

Fix Bug for Canceled Messages #8

Closed Traube1000101 closed 6 months ago

Traube1000101 commented 6 months ago

Objective

The aim of this task is to fix a bug that occurs when sending messages is aborted. Currently, the message left in the text box is the encrypted message, not the original text that was input by the user.

Details

This bug disrupts the user experience, as users expect to see their original, unencrypted message in the text box if the sending process is aborted. Also if that left over encrypted message with prefix is getting sent again, the message is encrypted a second time and can't be decrypted easily.

Image

Traube1000101 commented 6 months ago

This issue has been resolved with the commit 029c3030cca3ee6736facb1759e91f881d21db0c. Another Patcher was added to the cancel module, it then decrypts the draft content and sets it again.