feat: comment out message editing callback
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
SauceyRed 2025-07-31 03:52:34 +02:00
parent b54e14a2f8
commit fbb72919c3
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7

View file

@ -152,12 +152,12 @@ const menuItems: ContextMenuItem[] = [
console.log("me:", props.me);
if (props.author?.uuid == props.me.uuid) {
// Inserts "edit" option at index 1 (below the "reply" option)
menuItems.splice(1, 0, { name: "Edit", icon: "lucide:square-pen", callback: () => { if (messageElement.value) editMessage(messageElement.value, props) } });
menuItems.splice(1, 0, { name: "Edit (WIP)", icon: "lucide:square-pen", callback: () => { /* if (messageElement.value) editMessage(messageElement.value, props) */ } });
}
if (props.author?.uuid == props.me.uuid /* || check message delete permission*/) {
// Inserts "edit" option at index 2 (below the "edit" option)
menuItems.splice(2, 0, { name: "Delete", icon: "lucide:trash", callback: () => {} });
menuItems.splice(2, 0, { name: "Delete (WIP)", icon: "lucide:trash", callback: () => {} });
}
function getDayDifference(date1: Date, date2: Date) {