parent
af83fc236f
commit
2989b3c2ee
|
@ -389,7 +389,7 @@ class MessageContainer extends React.Component<IMessageContainerProps, IMessageC
|
||||||
|
|
||||||
let message = msg;
|
let message = msg;
|
||||||
let isTranslated = false;
|
let isTranslated = false;
|
||||||
const otherUserMessage = u.username !== user.username;
|
const otherUserMessage = u?.username !== user?.username;
|
||||||
// "autoTranslateRoom" and "autoTranslateLanguage" are properties from the subscription
|
// "autoTranslateRoom" and "autoTranslateLanguage" are properties from the subscription
|
||||||
// "autoTranslateMessage" is a toggle between "View Original" and "Translate" state
|
// "autoTranslateMessage" is a toggle between "View Original" and "Translate" state
|
||||||
if (autoTranslateRoom && autoTranslateMessage && autoTranslateLanguage && otherUserMessage) {
|
if (autoTranslateRoom && autoTranslateMessage && autoTranslateLanguage && otherUserMessage) {
|
||||||
|
|
Loading…
Reference in New Issue