You could enter the really delete message dialog without editing a message
@@ -305,6 +305,7 @@ func NewWindow(discord *discordgo.Session) (*Window, error) {
go discord.ChannelMessageSend(window.selectedChannel.ID, messageToSend)
}
} else {
+ if window.editingMessageID != nil {
dialog := tview.NewModal()
dialog.AddButtons([]string{"Abort", "Delete"})
dialog.SetDoneFunc(func(index int, label string) {
@@ -319,6 +320,7 @@ func NewWindow(discord *discordgo.Session) (*Window, error) {
})
window.app.SetRoot(dialog, false)
}
+ }
return nil
}
