[FIX] Add username block condition to prevent error (#1585)
This commit is contained in:
parent
c07a3db508
commit
06be061e72
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue