diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index b864a39c..33eb2928 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/osichat/__pycache__/consumers.cpython-310.pyc b/osinaweb/osichat/__pycache__/consumers.cpython-310.pyc index b66b1e0a..dfd9a270 100644 Binary files a/osinaweb/osichat/__pycache__/consumers.cpython-310.pyc and b/osinaweb/osichat/__pycache__/consumers.cpython-310.pyc differ diff --git a/osinaweb/osichat/consumers.py b/osinaweb/osichat/consumers.py index 5929236b..cd16fbd1 100644 --- a/osinaweb/osichat/consumers.py +++ b/osinaweb/osichat/consumers.py @@ -235,7 +235,7 @@ class OsitcomChatRoom(WebsocketConsumer): 'html': html, })) else: - if event.get('reconnecting') == 'False': + if event.get('reconnecting') == 'False': #Connecting for the first time html = render_to_string("chat-widget.html", context=context) else: if chat_room: diff --git a/osinaweb/osichat/templates/chat-room.html b/osinaweb/osichat/templates/chat-room.html index 6966c2a6..cf27f59d 100644 --- a/osinaweb/osichat/templates/chat-room.html +++ b/osinaweb/osichat/templates/chat-room.html @@ -2,13 +2,13 @@
{{chat_room.id}}
-{% if chat_room.chatroomguest.name %}Hello {{chat_room.chatroomguest.name}},{% else %}Hello,{% endif %} thank you for contacting us. Please bear with us while we connect you with the next available agent as soon as possible.
{{message.content}}
-{{message.content}}
+{{message.content}}
+ class="max-w-[80%] px-4 py-3 rounded-l-3xl rounded-tr-3xl text-white shadow-md text-sm leading-6 bg-opacity-70 bg-osiblue"> +{{message.content}}
{{message_attachment.message.member.first_name.0}}{{message_attachment.message.member.last_name.0}}
+ {% endif %}{{chat_message.member.first_name.0}}{{chat_message.member.last_name.0}}
+ {% endif %} +{{chat_message.content}}
+{{chat_message.member.first_name.0}}{{chat_message.member.last_name.0}}
+{{chat_message.content}}
-{{chat_message.content}}
+ {% endif %}{{chat_message.content}}
+