[FIX] Add username block condition to prevent error (#1585)

This commit is contained in:
Diego Mello 2020-01-16 13:05:24 -03:00 committed by GitHub
parent c07a3db508
commit 06be061e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ const formatMsg = ({
if (!showLastMessage) { if (!showLastMessage) {
return ''; return '';
} }
if (!lastMessage || lastMessage.pinned) { if (!lastMessage || !lastMessage.u || lastMessage.pinned) {
return I18n.t('No_Message'); return I18n.t('No_Message');
} }
if (lastMessage.t === 'jitsi_call_started') { if (lastMessage.t === 'jitsi_call_started') {