Add Local Deletion of Messages Also for Messages You did not Send #80

Merged
delvh merged 2 commits from f/delete-messages-locally into develop 2020-10-05 18:52:06 +02:00
Showing only changes of commit 2ca632e577 - Show all commits

View File

@ -76,12 +76,10 @@ public final class MessageControl extends Label {
items.add(copyMenuItem);
}
// Delete message - if own message - action
if (ownMessage && client.isOnline()) {
final var deleteMenuItem = new MenuItem("Delete locally");
deleteMenuItem.setOnAction(e -> MessageUtil.deleteMessage(message));
items.add(deleteMenuItem);
}
// Delete message
final var deleteMenuItem = new MenuItem("Delete locally");
deleteMenuItem.setOnAction(e -> MessageUtil.deleteMessage(message));
items.add(deleteMenuItem);
// As long as these types of messages are not implemented and no caches are
// defined for them, we only want them to appear when being online