mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Merge branch '3.0.x'
This commit is contained in:
commit
3bd77176e7
@ -68,6 +68,7 @@ exposed by a function if necessary.
|
||||
fish: null
|
||||
|
||||
loading = false
|
||||
loadingAwaiting = false
|
||||
|
||||
autocomplete =
|
||||
offset: 0
|
||||
@ -603,10 +604,16 @@ Fetch new messages from the server and pass them to `handleMessages`. The userli
|
||||
complete: ->
|
||||
loading = false
|
||||
|
||||
if loadingAwaiting
|
||||
loadingAwaiting = false
|
||||
do getMessages
|
||||
|
||||
Prevent loading messages in parallel.
|
||||
|
||||
beforeSend: ->
|
||||
return false if loading
|
||||
if loading
|
||||
loadingAwaiting = true
|
||||
return false
|
||||
|
||||
loading = true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user