From b4e15753aab22b2bc0e5c4ae57c7abdd196ace90 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 7 Jan 2020 17:00:46 -0300 Subject: [PATCH] [FIX] Insert messages with blank users (#1529) --- app/lib/methods/helpers/normalizeMessage.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/lib/methods/helpers/normalizeMessage.js b/app/lib/methods/helpers/normalizeMessage.js index 9005d145..2c6f11f9 100644 --- a/app/lib/methods/helpers/normalizeMessage.js +++ b/app/lib/methods/helpers/normalizeMessage.js @@ -18,12 +18,6 @@ function normalizeAttachments(msg) { } export default (msg) => { - /** - * 2019-03-29: Realm object properties are *always* optional, but `u.username` is required - * https://realm.io/docs/javascript/latest/#to-one-relationships - */ - if (!msg || !msg.u || !msg.u.username) { return; } - msg = normalizeAttachments(msg); msg.reactions = msg.reactions || []; msg.unread = msg.unread || false;