[FIX] Crashing when last message is pin (#1155)

This commit is contained in:
Diego Mello 2019-08-28 10:27:31 -03:00 committed by GitHub
parent 0aeedbb2f2
commit 5a51b4eab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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