Delete webhook messages too by looking up their id
A message sent through the webhook has no stored id, but it belongs to the same Slack app, so the bot token may remove it. The delete button now looks the message up in the channel by its text and time before deleting.
This commit is contained in:
+7
-3
@@ -295,7 +295,10 @@
|
||||
"runNotDeletable": "Dieser Lauf ging über den Webhook, dafür gibt es keine Nachrichtenkennung.",
|
||||
"runNoToken": "Ohne Bot-Token lässt sich in Slack nichts löschen.",
|
||||
"runDeleteFailed": "Slack hat das Löschen abgelehnt.",
|
||||
"tokenInvalid": "Ein Bot-Token beginnt mit xoxb oder xoxp."
|
||||
"tokenInvalid": "Ein Bot-Token beginnt mit xoxb oder xoxp.",
|
||||
"runNotSent": "Bei diesem Lauf ging keine Nachricht raus.",
|
||||
"runNoChannel": "Es ist kein Kanal hinterlegt.",
|
||||
"runNotFound": "Im Kanal war keine passende Nachricht zu finden. Braucht der Bot noch das Recht channels:history?"
|
||||
},
|
||||
"errors": {
|
||||
"nameRequired": "Trag einen Namen ein.",
|
||||
@@ -763,10 +766,11 @@
|
||||
"messageDelete": "In Slack löschen",
|
||||
"messageDeleting": "Wird gelöscht",
|
||||
"messageDeleted": "Gelöscht",
|
||||
"messageWebhook": "Über Webhook, nicht löschbar",
|
||||
"messageWebhook": "Über Webhook, Kennung wird gesucht",
|
||||
"pathBot": "Versand über den Bot-Token. Nachrichten lassen sich hier wieder löschen.",
|
||||
"pathWebhook": "Versand über den Webhook. Nachrichten lassen sich danach nicht mehr löschen, dafür braucht es einen Bot-Token.",
|
||||
"pathNone": "Noch kein Weg hinterlegt, es geht nichts raus."
|
||||
"pathNone": "Noch kein Weg hinterlegt, es geht nichts raus.",
|
||||
"messageNoToken": "Ohne Bot-Token nicht löschbar"
|
||||
}
|
||||
},
|
||||
"filter": {
|
||||
|
||||
+7
-3
@@ -295,7 +295,10 @@
|
||||
"runNotDeletable": "That run went through the webhook, so there is no message id.",
|
||||
"runNoToken": "Without a bot token nothing can be deleted in Slack.",
|
||||
"runDeleteFailed": "Slack refused the deletion.",
|
||||
"tokenInvalid": "A bot token starts with xoxb or xoxp."
|
||||
"tokenInvalid": "A bot token starts with xoxb or xoxp.",
|
||||
"runNotSent": "That run sent no message.",
|
||||
"runNoChannel": "No channel is stored.",
|
||||
"runNotFound": "No matching message found in the channel. Does the bot still need channels:history?"
|
||||
},
|
||||
"errors": {
|
||||
"nameRequired": "Enter a name.",
|
||||
@@ -763,10 +766,11 @@
|
||||
"messageDelete": "Delete in Slack",
|
||||
"messageDeleting": "Deleting",
|
||||
"messageDeleted": "Deleted",
|
||||
"messageWebhook": "Sent by webhook, cannot be deleted",
|
||||
"messageWebhook": "Sent by webhook, id will be looked up",
|
||||
"pathBot": "Sending through the bot token. Messages can be deleted from here.",
|
||||
"pathWebhook": "Sending through the webhook. Messages cannot be deleted afterwards, that needs a bot token.",
|
||||
"pathNone": "No route stored yet, nothing goes out."
|
||||
"pathNone": "No route stored yet, nothing goes out.",
|
||||
"messageNoToken": "Not deletable without a bot token"
|
||||
}
|
||||
},
|
||||
"filter": {
|
||||
|
||||
Reference in New Issue
Block a user