Skip to content

Commit

Permalink
[FIX] Auto-translate messages as they arrive (#1049)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
diegolmello authored Jul 15, 2019
1 parent c249714 commit 3619e0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/methods/helpers/normalizeMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3619e0a

Please sign in to comment.