podchat-browser 12.9.15 → 12.9.16-snapshot.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/buildConfig.json +1 -1
- package/dist/node/chat.js +43 -0
- package/dist/podchat-browser-bundle.js +2 -2
- package/package.json +1 -1
- package/src/buildConfig.json +1 -1
- package/src/chat.js +45 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"12.9.
|
|
1
|
+
{"version":"12.9.16-snapshot.0","date":"۱۴۰۳/۹/۱۴","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
|
package/dist/node/chat.js
CHANGED
|
@@ -1472,6 +1472,49 @@ function Chat(params) {
|
|
|
1472
1472
|
app.store.messagesCallbacks[uniqueId](_utility["default"].createReturnData(chatMessage.typeCode, chatMessage.ownerId, false, '', 0, messageContent, contentCount));
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
|
+
if (app.sdkParams.fullResponseObject) {
|
|
1476
|
+
getThreads({
|
|
1477
|
+
threadIds: [messageContent.id],
|
|
1478
|
+
typeCode: typeCode
|
|
1479
|
+
}, function (threadsResult) {
|
|
1480
|
+
var threads = threadsResult.result.threads;
|
|
1481
|
+
|
|
1482
|
+
if (!threadsResult.cache) {
|
|
1483
|
+
app.chatEvents.fireEvent('threadEvents', {
|
|
1484
|
+
type: 'THREAD_PARTICIPANT_JOIN',
|
|
1485
|
+
result: {
|
|
1486
|
+
thread: threads[0],
|
|
1487
|
+
messageContent: messageContent,
|
|
1488
|
+
typeCode: typeCode
|
|
1489
|
+
}
|
|
1490
|
+
});
|
|
1491
|
+
app.chatEvents.fireEvent('threadEvents', {
|
|
1492
|
+
type: 'THREAD_LAST_ACTIVITY_TIME',
|
|
1493
|
+
result: {
|
|
1494
|
+
thread: threads[0],
|
|
1495
|
+
typeCode: typeCode
|
|
1496
|
+
}
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
});
|
|
1500
|
+
} else {
|
|
1501
|
+
app.chatEvents.fireEvent('threadEvents', {
|
|
1502
|
+
type: 'THREAD_PARTICIPANT_JOIN',
|
|
1503
|
+
result: {
|
|
1504
|
+
thread: messageContent,
|
|
1505
|
+
messageContent: messageContent,
|
|
1506
|
+
typeCode: typeCode
|
|
1507
|
+
}
|
|
1508
|
+
});
|
|
1509
|
+
app.chatEvents.fireEvent('threadEvents', {
|
|
1510
|
+
type: 'THREAD_LAST_ACTIVITY_TIME',
|
|
1511
|
+
result: {
|
|
1512
|
+
thread: messageContent,
|
|
1513
|
+
typeCode: typeCode
|
|
1514
|
+
}
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1475
1518
|
break;
|
|
1476
1519
|
|
|
1477
1520
|
/**
|
|
@@ -47762,7 +47762,7 @@ FilterXSS.prototype.process = function (html) {
|
|
|
47762
47762
|
module.exports = FilterXSS;
|
|
47763
47763
|
|
|
47764
47764
|
},{"./default":266,"./parser":268,"./util":269,"cssfilter":129}],271:[function(require,module,exports){
|
|
47765
|
-
module.exports={"version":"12.9.
|
|
47765
|
+
module.exports={"version":"12.9.16-snapshot.0","date":"۱۴۰۳/۹/۱۴","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
|
|
47766
47766
|
},{}],272:[function(require,module,exports){
|
|
47767
47767
|
"use strict";
|
|
47768
47768
|
|
|
@@ -50896,7 +50896,7 @@ break;/**
|
|
|
50896
50896
|
* Type 34 Is Public Group Name Available?
|
|
50897
50897
|
*/case _constants.chatMessageVOTypes.IS_NAME_AVAILABLE:if(app.store.messagesCallbacks[uniqueId]){app.store.messagesCallbacks[uniqueId](_utility["default"].createReturnData(chatMessage.typeCode,chatMessage.ownerId,false,'',0,messageContent,contentCount));}break;/**
|
|
50898
50898
|
* Type 39 Join Public Group or Channel
|
|
50899
|
-
*/case _constants.chatMessageVOTypes.JOIN_THREAD:if(app.store.messagesCallbacks[uniqueId]){app.store.messagesCallbacks[uniqueId](_utility["default"].createReturnData(chatMessage.typeCode,chatMessage.ownerId,false,'',0,messageContent,contentCount));}break;/**
|
|
50899
|
+
*/case _constants.chatMessageVOTypes.JOIN_THREAD:if(app.store.messagesCallbacks[uniqueId]){app.store.messagesCallbacks[uniqueId](_utility["default"].createReturnData(chatMessage.typeCode,chatMessage.ownerId,false,'',0,messageContent,contentCount));}if(app.sdkParams.fullResponseObject){getThreads({threadIds:[messageContent.id],typeCode:typeCode},function(threadsResult){var threads=threadsResult.result.threads;if(!threadsResult.cache){app.chatEvents.fireEvent('threadEvents',{type:'THREAD_PARTICIPANT_JOIN',result:{thread:threads[0],messageContent:messageContent,typeCode:typeCode}});app.chatEvents.fireEvent('threadEvents',{type:'THREAD_LAST_ACTIVITY_TIME',result:{thread:threads[0],typeCode:typeCode}});}});}else{app.chatEvents.fireEvent('threadEvents',{type:'THREAD_PARTICIPANT_JOIN',result:{thread:messageContent,messageContent:messageContent,typeCode:typeCode}});app.chatEvents.fireEvent('threadEvents',{type:'THREAD_LAST_ACTIVITY_TIME',result:{thread:messageContent,typeCode:typeCode}});}break;/**
|
|
50900
50900
|
* Type 40 Bot Messages
|
|
50901
50901
|
*/case _constants.chatMessageVOTypes.BOT_MESSAGE:app.chatEvents.fireEvent('botEvents',{type:'BOT_MESSAGE',result:{bot:messageContent}});break;/**
|
|
50902
50902
|
* Type 41 Spam P2P Thread
|
package/package.json
CHANGED
package/src/buildConfig.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"12.9.
|
|
1
|
+
{"version":"12.9.16-snapshot.0","date":"۱۴۰۳/۹/۱۴","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
|
package/src/chat.js
CHANGED
|
@@ -1480,6 +1480,51 @@ function Chat(params) {
|
|
|
1480
1480
|
if (app.store.messagesCallbacks[uniqueId]) {
|
|
1481
1481
|
app.store.messagesCallbacks[uniqueId](Utility.createReturnData(chatMessage.typeCode, chatMessage.ownerId, false, '', 0, messageContent, contentCount));
|
|
1482
1482
|
}
|
|
1483
|
+
|
|
1484
|
+
if (app.sdkParams.fullResponseObject) {
|
|
1485
|
+
getThreads({
|
|
1486
|
+
threadIds: [messageContent.id],
|
|
1487
|
+
typeCode
|
|
1488
|
+
}, function (threadsResult) {
|
|
1489
|
+
let threads = threadsResult.result.threads;
|
|
1490
|
+
|
|
1491
|
+
if (!threadsResult.cache) {
|
|
1492
|
+
app.chatEvents.fireEvent('threadEvents', {
|
|
1493
|
+
type: 'THREAD_PARTICIPANT_JOIN',
|
|
1494
|
+
result: {
|
|
1495
|
+
thread: threads[0],
|
|
1496
|
+
messageContent,
|
|
1497
|
+
typeCode
|
|
1498
|
+
}
|
|
1499
|
+
});
|
|
1500
|
+
|
|
1501
|
+
app.chatEvents.fireEvent('threadEvents', {
|
|
1502
|
+
type: 'THREAD_LAST_ACTIVITY_TIME',
|
|
1503
|
+
result: {
|
|
1504
|
+
thread: threads[0],
|
|
1505
|
+
typeCode
|
|
1506
|
+
}
|
|
1507
|
+
});
|
|
1508
|
+
}
|
|
1509
|
+
});
|
|
1510
|
+
} else {
|
|
1511
|
+
app.chatEvents.fireEvent('threadEvents', {
|
|
1512
|
+
type: 'THREAD_PARTICIPANT_JOIN',
|
|
1513
|
+
result: {
|
|
1514
|
+
thread: messageContent,
|
|
1515
|
+
messageContent,
|
|
1516
|
+
typeCode
|
|
1517
|
+
}
|
|
1518
|
+
});
|
|
1519
|
+
|
|
1520
|
+
app.chatEvents.fireEvent('threadEvents', {
|
|
1521
|
+
type: 'THREAD_LAST_ACTIVITY_TIME',
|
|
1522
|
+
result: {
|
|
1523
|
+
thread: messageContent,
|
|
1524
|
+
typeCode
|
|
1525
|
+
}
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1483
1528
|
break;
|
|
1484
1529
|
|
|
1485
1530
|
/**
|