From a2cbd9229af897e1490606ff024cf9dbac3f24bf Mon Sep 17 00:00:00 2001 From: Bettenbuk Zoltan Date: Fri, 2 Aug 2019 14:30:38 +0200 Subject: [PATCH] fix: render notification description on mobile --- .../components/native/Notification.js | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/react/features/notifications/components/native/Notification.js b/react/features/notifications/components/native/Notification.js index d3d317562..7c89f869d 100644 --- a/react/features/notifications/components/native/Notification.js +++ b/react/features/notifications/components/native/Notification.js @@ -64,25 +64,26 @@ class Notification extends AbstractNotification { _renderContent() { const { t, title, titleArguments, titleKey } = this.props; const titleText = title || (titleKey && t(titleKey, titleArguments)); + const description = this._getDescription(); - if (titleText) { - return ( + if (description && description.length) { + return description.map((line, index) => ( - { titleText } + style = { styles.contentText }> + { line } - ); + )); } - return this._getDescription().map((line, index) => ( + return ( - { line } + style = { styles.contentText } > + { titleText } - )); + ); } _getDescription: () => Array;