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):
|
||||
Dict.update({
|
||||
'msgs_count': len(msgs)
|
||||
'required_beep': False
|
||||
})
|
||||
return JsonResponse(Dict, status=200)
|
||||
|
||||
@@ -105,7 +105,7 @@ def update_chat_ajax(request):
|
||||
|
||||
Dict.update({
|
||||
'html': html,
|
||||
'msgs_count': len(msgs)
|
||||
'required_beep': True,
|
||||
})
|
||||
return JsonResponse(Dict, status=200)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user