SHA256
Исправить маршрутизацию call push по sessionId
This commit is contained in:
@@ -100,6 +100,7 @@ self.addEventListener('push', (event) => {
|
||||
const json = decodePushJson(rawText);
|
||||
const callId = String(json.callId || '').trim();
|
||||
const fromSessionId = String(json.fromSessionId || '').trim();
|
||||
const targetSessionId = String(json.targetSessionId || '').trim();
|
||||
const toLogin = String(json.toLogin || '').trim();
|
||||
const reason = String(json.reason || '').trim();
|
||||
const sentAtMs = Number(json.sentAtMs || 0);
|
||||
@@ -139,6 +140,7 @@ self.addEventListener('push', (event) => {
|
||||
callId,
|
||||
fromLogin,
|
||||
fromSessionId,
|
||||
targetSessionId,
|
||||
toLogin,
|
||||
sentAtMs,
|
||||
expiresAtMs,
|
||||
@@ -165,6 +167,7 @@ self.addEventListener('push', (event) => {
|
||||
body,
|
||||
fromLogin,
|
||||
fromSessionId,
|
||||
targetSessionId,
|
||||
toLogin,
|
||||
callId,
|
||||
sentAtMs,
|
||||
@@ -186,6 +189,7 @@ self.addEventListener('notificationclick', (event) => {
|
||||
callId: String(data.callId || '').trim(),
|
||||
fromLogin: String(data.fromLogin || '').trim(),
|
||||
fromSessionId: String(data.fromSessionId || '').trim(),
|
||||
targetSessionId: String(data.targetSessionId || '').trim(),
|
||||
toLogin: String(data.toLogin || '').trim(),
|
||||
sentAtMs: Number(data.sentAtMs || 0),
|
||||
expiresAtMs: Number(data.expiresAtMs || 0),
|
||||
|
||||
Reference in New Issue
Block a user