From 66f348d4a073e1b6ac23cb6ca98fb5c5c2f51a2a Mon Sep 17 00:00:00 2001 From: SDE Date: Thu, 24 Aug 2023 12:50:53 +0300 Subject: [PATCH] 0.3.34 support chat v3 --- ChatServiceApp/funcs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ChatServiceApp/funcs.py b/ChatServiceApp/funcs.py index 3517be5..4dd628c 100644 --- a/ChatServiceApp/funcs.py +++ b/ChatServiceApp/funcs.py @@ -77,7 +77,10 @@ def get_update_chat_Dict(data): if ticket: msgs = get_messages_for_ticket(ticket) # если меньше 3 сообщений значит выведена не полная форма - требуется другой шаблон - if 'bad_manager' in data and len(msgs) < 3 and data['receiver'] == data['cur_user']: + if len(msgs) < 3 and data['receiver'] == data['cur_user']: + tpl_name = 'blocks/profile/b_support_chat.html' + required_full_support_chat_html = True + elif 'bad_manager' in data: tpl_name = 'blocks/profile/b_support_chat.html' required_full_support_chat_html = True