Skip to content

Commit

Permalink
MessageClickActions: Fix editing messages which failed to send (Vendi…
Browse files Browse the repository at this point in the history
  • Loading branch information
programminglaboratorys authored and Autumnlight02 committed Nov 20, 2024
1 parent 4b5fee6 commit 3a8b806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/messageClickActions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default definePlugin({
if (msg.deleted === true) return;

if (isMe) {
if (!settings.store.enableDoubleClickToEdit || EditStore.isEditing(channel.id, msg.id)) return;
if (!settings.store.enableDoubleClickToEdit || EditStore.isEditing(channel.id, msg.id) || msg.state !== "SENT") return;

MessageActions.startEditMessage(channel.id, msg.id, msg.content);
event.preventDefault();
Expand Down

0 comments on commit 3a8b806

Please sign in to comment.