Skip to content

feature: when editing with an empty body, delete the message#2707

Open
malwarepad wants to merge 3 commits intocinnyapp:devfrom
malwarepad:pr
Open

feature: when editing with an empty body, delete the message#2707
malwarepad wants to merge 3 commits intocinnyapp:devfrom
malwarepad:pr

Conversation

@malwarepad
Copy link

Description

When trying to edit a message with an empty body, it gets deleted. Silently fails if user doesn't have the correct permissions.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@nushea
Copy link

nushea commented Feb 28, 2026

I love this but maybe it should be made so it opens the confirm delete screen

@malwarepad
Copy link
Author

I love this but maybe it should be made so it opens the confirm delete screen

Just did some refactoring and implemented that. I also made the confirmation button immediately focused, so that you can double enter for quick deletion (like in Discord)

@Sollace
Copy link

Sollace commented Mar 9, 2026

I love this but maybe it should be made so it opens the confirm delete screen

Just did some refactoring and implemented that. I also made the confirmation button immediately focused, so that you can double enter for quick deletion (like in Discord)

Something that would be nice to have might be the ability to delete without a prompt by holding shift. On discord shift will even bring up extra options in the little bar next to messages as you hover them to make moderation easier.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants