From 06be061e72da6ad9c933a9c40224cbdd467c951d Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 16 Jan 2020 13:05:24 -0300 Subject: [PATCH] [FIX] Add username block condition to prevent error (#1585) --- app/presentation/RoomItem/LastMessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/presentation/RoomItem/LastMessage.js b/app/presentation/RoomItem/LastMessage.js index ab6d14476..08debd9e7 100644 --- a/app/presentation/RoomItem/LastMessage.js +++ b/app/presentation/RoomItem/LastMessage.js @@ -14,7 +14,7 @@ const formatMsg = ({ if (!showLastMessage) { return ''; } - if (!lastMessage || lastMessage.pinned) { + if (!lastMessage || !lastMessage.u || lastMessage.pinned) { return I18n.t('No_Message'); } if (lastMessage.t === 'jitsi_call_started') {