From 3619e0ab7f436f5ab1fe61390d0295a65da9d473 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 15 Jul 2019 13:56:52 -0300 Subject: [PATCH] [FIX] Auto-translate messages as they arrive (#1049) * Comment removeClippedSubviews * Comment width animation * Remove redux from RoomItem * Fix wrong re-render comparison * Remove listener * Raise minDeltaX * memo actions * Spring with native driver * Refactor functions * Fix props issues * Remove RoomItem.height * Long swipe * Refactor animations * this.rowTranslation -> this.transX * Moved state to this * [FIX] Auto-translate messages as they arrive --- app/lib/methods/helpers/normalizeMessage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/methods/helpers/normalizeMessage.js b/app/lib/methods/helpers/normalizeMessage.js index f728f271e..9005d145f 100644 --- a/app/lib/methods/helpers/normalizeMessage.js +++ b/app/lib/methods/helpers/normalizeMessage.js @@ -38,6 +38,7 @@ export default (msg) => { } if (msg.translations && Object.keys(msg.translations).length) { msg.translations = Object.keys(msg.translations).map(key => ({ _id: `${ msg._id }${ key }`, language: key, value: msg.translations[key] })); + msg.autoTranslate = true; } msg.urls = msg.urls ? parseUrls(msg.urls) : []; msg._updatedAt = new Date();