diff --git a/ChatServiceApp/js_views.py b/ChatServiceApp/js_views.py index 83bfeda..e0f80cb 100644 --- a/ChatServiceApp/js_views.py +++ b/ChatServiceApp/js_views.py @@ -29,9 +29,12 @@ def show_chat_w_user_ajax(request): from AuthApp.models import User cur_receiver = User.objects.get(id=data['user_id']) + receivers = get_chat_receivers_for_user(request.user) + Dict = { 'cur_receiver': cur_receiver, 'messages': get_msgs_for_chat_w_users(request.user, cur_receiver), + 'receivers': receivers, } tpl_name = 'blocks/profile/b_chats.html'