emile 9 months ago
parent 540cb7b282
commit 0f9c458621

Binary file not shown.

@ -258,7 +258,7 @@ class Osichat(WebsocketConsumer):
class OsitcomChatRoom(WebsocketConsumer):
def connect(self):
self.domain = 'https://osina.ositcom.com'
self.domain = 'http://192.168.1.106:8000'
self.session_id = self.scope['url_route']['kwargs']['session_id']
self.visitor = Visitor.objects.filter(session_id=self.session_id).last()
if not self.visitor:

@ -14,14 +14,12 @@ def send_notification(notification):
'title': notification.title,
'body': mark_safe(notification.message),
}
sound = "default"
if notification.image:
FCMDevice.objects.send_message(
Message(notification=NotificationFB(
title=notification_data['title'],
body=notification_data['body'],
image= notification.image,
sound=sound
), data={"image": notification.image})
)
else:
@ -29,7 +27,6 @@ def send_notification(notification):
Message(notification=NotificationFB(
title=notification_data['title'],
body=notification_data['body'],
sound=sound
))
)

@ -1,6 +1,6 @@
let admin_chat_ws_scheme = window.location.protocol === "https:" ? "wss" : "ws";
let protocol = window.location.protocol === "https:" ? "https" : "http";
let admin_chat_domain = "osina.ositcom.com";
let admin_chat_domain = "192.168.1.106:8000";
let userId = document.getElementById('userId').textContent.trim();
let osichatadminroomSocket = null;
let currentChatId = null;

@ -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 = "192.168.1.106:8000";
const ositcomDomain = "192.168.1.106:3000";
async function fetchClientData() {

Loading…
Cancel
Save