emile 8 months ago
parent 444ca94669
commit 864c513a3c

Binary file not shown.

@ -342,7 +342,7 @@ class OsitcomChatRoom(WebsocketConsumer):
else:
self.chat_room = None
if self.scope["user"].is_authenticated: #If a user add him as a chat_member
if self.scope["user"].is_authenticated and self.chat_room: #If a user add him as a chat_member
self.chat_member = ChatMember.objects.filter(member=self.scope["user"]).last()
if not self.chat_member:
self.chat_member = ChatMember.objects.create(

@ -3,7 +3,7 @@
const chatId = event.currentTarget.getAttribute('data-roomid');
if (chatId && chatId !== currentChatId) {
showLoader();
openConversation(sessionId, chatId);
openConversation(chatId);
currentChatId = chatId;
}
}

@ -1,7 +1,7 @@
const wsScheme = window.location.protocol === "https:" ? "wss" : "ws";
const protocol = window.location.protocol === "https:" ? "https" : "http";
const osinaDomain = "osina.ositcom.com";
const ositcomDomain = "ositcom.com";
const osinaDomain = "https://osina.ositcom.com";
const ositcomDomain = "https://ositcom.com";
async function fetchClientData() {

Loading…
Cancel
Save