mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
parent
e7b6bae348
commit
f880427c54
@ -370,10 +370,9 @@ Fetch new messages from the server and pass them to `handleMessages`. The userli
|
|||||||
type: 'POST'
|
type: 'POST'
|
||||||
success: (data) ->
|
success: (data) ->
|
||||||
remainingFailures = 3
|
remainingFailures = 3
|
||||||
WCF.DOMNodeInsertedHandler.enable()
|
|
||||||
handleMessages data.messages
|
handleMessages data.messages
|
||||||
handleUsers data.users
|
handleUsers data.users
|
||||||
WCF.DOMNodeInsertedHandler.disable()
|
WCF.DOMNodeInsertedHandler.execute()
|
||||||
error: ->
|
error: ->
|
||||||
console.error "Message loading failed, #{--remainingFailures} remaining"
|
console.error "Message loading failed, #{--remainingFailures} remaining"
|
||||||
if remainingFailures <= 0
|
if remainingFailures <= 0
|
||||||
|
Loading…
Reference in New Issue
Block a user