Commit 07d08223 by Matt Tuchfarber

Remove group creation and fix

parent d322e326
...@@ -136,3 +136,5 @@ dist ...@@ -136,3 +136,5 @@ dist
# Visual Studio Code # Visual Studio Code
.vscode .vscode
venv
\ No newline at end of file
...@@ -1679,9 +1679,6 @@ def enter_chat(request, course_id): ...@@ -1679,9 +1679,6 @@ def enter_chat(request, course_id):
rocketchat = RocketWrap('apiuser', 'apipassword', server_url=SERVER_DOMAIN, ssl_verify=False) rocketchat = RocketWrap('apiuser', 'apipassword', server_url=SERVER_DOMAIN, ssl_verify=False)
full_name = lms_user.get_full_name() if lms_user.get_full_name() else "_" full_name = lms_user.get_full_name() if lms_user.get_full_name() else "_"
if not rocketchat.get_group(course_id):
rocketchat.create_new_group(course_id)
rc_user = rocketchat.get_or_create_user( rc_user = rocketchat.get_or_create_user(
lms_user.email, lms_user.email,
full_name, full_name,
......
...@@ -112,7 +112,7 @@ from openedx.core.djangolib.markup import HTML, Text ...@@ -112,7 +112,7 @@ from openedx.core.djangolib.markup import HTML, Text
</div> </div>
</div> </div>
</main> </main>
% if course._deprecated_per_instance_field_data._kvs._fields['enable_rocket_chat'] % if course._deprecated_per_instance_field_data._kvs._fields.get('enable_rocket_chat', None)
<script> <script>
var full_url = window.location.protocol + '//' + window.location.host + '/courses/${course_id}/chat'; var full_url = window.location.protocol + '//' + window.location.host + '/courses/${course_id}/chat';
tab_list = document.querySelector('.course-tabs'); tab_list = document.querySelector('.course-tabs');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment