0.7.70
chat avatars
This commit is contained in:
@@ -10,7 +10,7 @@ from django.template.loader import render_to_string
|
||||
from django.urls import reverse
|
||||
import json
|
||||
from datetime import datetime, time
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
def get_update_chat_Dict(data):
|
||||
@@ -63,7 +63,10 @@ def get_update_chat_Dict(data):
|
||||
|
||||
|
||||
# формируем правую панель
|
||||
context_Dict.update({'receivers': receivers})
|
||||
context_Dict.update({
|
||||
'receivers': receivers,
|
||||
'MEDIA_URL': settings.MEDIA_URL
|
||||
})
|
||||
users_list_html = render_to_string(
|
||||
'blocks/profile/b_list_of_users_messenger.html', context_Dict)
|
||||
res_Dict.update({
|
||||
@@ -87,7 +90,10 @@ def get_update_chat_Dict(data):
|
||||
if ticket.manager:
|
||||
context_Dict.update({'new_msg_allow': True})
|
||||
|
||||
context_Dict.update({'messages': msgs})
|
||||
context_Dict.update({
|
||||
'messages': msgs,
|
||||
'MEDIA_URL': settings.MEDIA_URL
|
||||
})
|
||||
html = render_to_string(tpl_name, context_Dict)
|
||||
if required_full_support_chat_html:
|
||||
res_Dict.update({'support_chat_html': html})
|
||||
|
||||
Reference in New Issue
Block a user