mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-25 15:15:52 +00:00
party: chat - better messages.length check
This commit is contained in:
parent
ba98179ae0
commit
ef9e058f54
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ viewHelpers = (view) ->
|
|||
|
||||
view.fn 'newChatMessages', (messages, lastMessageSeen) ->
|
||||
return false unless messages?.length > 0
|
||||
messages && messages[0].id != lastMessageSeen
|
||||
messages?[0] and (messages[0].id != lastMessageSeen)
|
||||
|
||||
view.fn 'indexOf', (str1, str2) ->
|
||||
return false unless str1 && str2
|
||||
|
|
|
|||
Loading…
Reference in a new issue