0.1.50
chat routines
This commit is contained in:
@@ -90,7 +90,7 @@ def update_chat_ajax(request):
|
|||||||
|
|
||||||
if (not msgs and not last_message_modifiedDT) or (msgs and last_message_modifiedDT and msgs[0].modifiedDT <= last_message_modifiedDT):
|
if (not msgs and not last_message_modifiedDT) or (msgs and last_message_modifiedDT and msgs[0].modifiedDT <= last_message_modifiedDT):
|
||||||
Dict.update({
|
Dict.update({
|
||||||
'msgs_count': len(msgs)
|
'required_beep': False
|
||||||
})
|
})
|
||||||
return JsonResponse(Dict, status=200)
|
return JsonResponse(Dict, status=200)
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ def update_chat_ajax(request):
|
|||||||
|
|
||||||
Dict.update({
|
Dict.update({
|
||||||
'html': html,
|
'html': html,
|
||||||
'msgs_count': len(msgs)
|
'required_beep': True,
|
||||||
})
|
})
|
||||||
return JsonResponse(Dict, status=200)
|
return JsonResponse(Dict, status=200)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user