Skip to content

Commit

Permalink
comment out old delete mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
Madame-Aehm committed Jul 6, 2023
1 parent 960797f commit d282d94
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/codac-quasseln/src/components/chat/chat-bubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ export const ChatBubble = ({ message }: { message: any }) => {
};

const deleteMessage = () => {
if (authorId === user?.id) {
deleteMessageMutation({
variables: {
id: `${message.id}`,
},
});
}
// if (authorId === user?.id) {
// deleteMessageMutation({
// variables: {
// id: `${message.id}`,
// },
// });
// }
alert("message deleted");
};

Expand Down

0 comments on commit d282d94

Please sign in to comment.