mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-31 11:10:30 +00:00
party: chat - better messages.length check
This commit is contained in:
parent
d7ad379ec1
commit
78944e93ef
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,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