diff --git a/app/lib/methods/subscriptions/rooms.js b/app/lib/methods/subscriptions/rooms.js index 6f3b3e21a..997ea0a1a 100644 --- a/app/lib/methods/subscriptions/rooms.js +++ b/app/lib/methods/subscriptions/rooms.js @@ -355,7 +355,7 @@ export default function subscribeRooms() { notification.avatar = RocketChat.getRoomAvatar(room); // If it's from a encrypted room - if (message.t === E2E_MESSAGE_TYPE) { + if (message?.t === E2E_MESSAGE_TYPE) { // Decrypt this message content const { msg } = await Encryption.decryptMessage({ ...message, rid }); // If it's a direct the content is the message decrypted