Unverified Commit 32bba0fc authored by Diego Mello's avatar Diego Mello Committed by GitHub
Browse files

[FIX] Error when normalizing empty messages (#1532)

parent 1096d50f
......@@ -18,6 +18,9 @@ function normalizeAttachments(msg) {
}
export default (msg) => {
if (!msg) {
return null;
}
msg = normalizeAttachments(msg);
msg.reactions = msg.reactions || [];
msg.unread = msg.unread || false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment