Add local deletion of messages also for messages you did not send
This commit is contained in:
parent
8c0add517a
commit
2ca632e577
@ -76,12 +76,10 @@ public final class MessageControl extends Label {
|
|||||||
items.add(copyMenuItem);
|
items.add(copyMenuItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete message - if own message - action
|
// Delete message
|
||||||
if (ownMessage && client.isOnline()) {
|
final var deleteMenuItem = new MenuItem("Delete locally");
|
||||||
final var deleteMenuItem = new MenuItem("Delete locally");
|
deleteMenuItem.setOnAction(e -> MessageUtil.deleteMessage(message));
|
||||||
deleteMenuItem.setOnAction(e -> MessageUtil.deleteMessage(message));
|
items.add(deleteMenuItem);
|
||||||
items.add(deleteMenuItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
// As long as these types of messages are not implemented and no caches are
|
// 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
|
// defined for them, we only want them to appear when being online
|
||||||
|
Reference in New Issue
Block a user