Skip to content

Commit

Permalink
fix: delete unneeded line of code from lib.js in server folder (#710)
Browse files Browse the repository at this point in the history
Co-authored-by: Dunsin <78784850+Dun-sin@users.noreply.github.com>
  • Loading branch information
wheval and Dun-sin authored Oct 20, 2024
1 parent d342c4f commit 49e432d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/utils/lib.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { Socket } = require('socket.io');
const mongoose = require('mongoose');
const CryptoJS = require('crypto-js');
const { ObjectId } = require('mongodb');

const ActiveUser = require('../models/UserModel');
Expand Down Expand Up @@ -388,8 +387,6 @@ async function editMessage(chatId, { id, message, oldMessage }) {
return false;
}

message = CryptoJS.AES.encrypt(message, secretKey).toString();

try {
await Message.findOneAndUpdate(
{ _id: id },
Expand Down

0 comments on commit 49e432d

Please sign in to comment.