From e3d95eafe13fb182a5704fd178e205694628a708 Mon Sep 17 00:00:00 2001 From: or-else Date: Thu, 14 Sep 2017 11:43:27 -0700 Subject: [PATCH] bug fixes --- css/base.css | 6 +++--- index.html | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/css/base.css b/css/base.css index 8c1705f2..6977804e 100644 --- a/css/base.css +++ b/css/base.css @@ -609,7 +609,7 @@ table.permission-editor td.checkbox { } /* Online-offline indicator positioned inside avatar-box */ -.contact-box .online, .offline { +.avatar-box .online, .offline { display: inline-block; width: 0.75rem; min-width: 0.75rem; @@ -621,10 +621,10 @@ table.permission-editor td.checkbox { right: 0; bottom: 0.1rem; } -.contact-box .online { +.avatar-box .online { background-color: #4caf50; } -.contact-box .offline { +.avatar-box .offline { background-color: #C0C0C0; } diff --git a/index.html b/index.html index 50dcb9ba..0aa3ddb3 100644 --- a/index.html +++ b/index.html @@ -2876,10 +2876,12 @@ }); }, tnMeMetaDesc: function(desc) { - this.setState({ - sidePanelTitle: desc.public.fn, - sidePanelAvatar: makeImageUrl(desc.public.photo) - }); + if (desc && desc.public) { + this.setState({ + sidePanelTitle: desc.public.fn, + sidePanelAvatar: makeImageUrl(desc.public.photo) + }); + } }, // Sending "received" notifications tnData: function(data) {