From 316748988bed485803385850d381ac0ae8a254d3 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 23 Jul 2021 18:24:51 +0200 Subject: [PATCH] Allow contact's profile modal to be shown... even if there is now OMEMO device info --- src/modals/templates/profile.js | 11 +++++------ src/plugins/omemo/overrides/profile-modal.js | 9 +++------ src/shared/chat/message.js | 2 +- src/shared/styles/messages.scss | 2 ++ 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/modals/templates/profile.js b/src/modals/templates/profile.js index b933bafc0..b0fd134f4 100644 --- a/src/modals/templates/profile.js +++ b/src/modals/templates/profile.js @@ -58,7 +58,7 @@ const device_list = (o) => { ${i18n_other_devices} - ${ o.view.other_devices.map(device => device_item(Object.assign({device}, o))) } + ${ o.view.other_devices?.map(device => device_item(Object.assign({device}, o))) }
`; @@ -81,7 +81,7 @@ const omemo_page = (o) => {
- ${ o.view.other_devices.length ? device_list(o) : '' } + ${ o.view.other_devices?.length ? device_list(o) : '' } `; } @@ -100,16 +100,15 @@ export default (o) => { const i18n_omemo = __('OMEMO'); const i18n_profile = __('Profile'); - const navigation = html` - ` : ''; return html`