From 5a51b4eab0cd2cf8d6411ff6799a5c8875de5bdb Mon Sep 17 00:00:00 2001
From: Diego Mello <diegolmello@gmail.com>
Date: Wed, 28 Aug 2019 10:27:31 -0300
Subject: [PATCH] [FIX] Crashing when last message is pin (#1155)

---
 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 9b3e59b56..0c4d8be67 100644
--- a/app/presentation/RoomItem/LastMessage.js
+++ b/app/presentation/RoomItem/LastMessage.js
@@ -13,7 +13,7 @@ const formatMsg = ({
 	if (!showLastMessage) {
 		return '';
 	}
-	if (!lastMessage) {
+	if (!lastMessage || lastMessage.pinned) {
 		return I18n.t('No_Message');
 	}
 
-- 
GitLab