Skip to content
Snippets Groups Projects
Unverified Commit 5a51b4ea authored by Diego Mello's avatar Diego Mello Committed by GitHub
Browse files

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

parent 0aeedbb2
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ const formatMsg = ({
if (!showLastMessage) {
return '';
}
if (!lastMessage) {
if (!lastMessage || lastMessage.pinned) {
return I18n.t('No_Message');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment