podchat-browser 12.5.2-snapshot.4 → 12.5.2-snapshot.5
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/changelog.md +4 -0
- package/examples/bundle-test.js +8 -27
- package/package.json +1 -1
- package/src/call.module.js +7 -10
- package/src/chat.js +1 -17
package/changelog.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented here.
|
|
4
4
|
to see complete list of changelog please visit [ChangeLog](http://gp.fanapsoft.ir/pod/pod-basic-sdk/chat-js-browser-sdk/-/blob/master/changelog.md)
|
|
5
5
|
|
|
6
|
+
## [12.5.2-snapshot.5] - 2022-05-29
|
|
7
|
+
### Changed
|
|
8
|
+
- Fixes user being muted when muting others
|
|
9
|
+
|
|
6
10
|
## [12.5.2-snapshot.4] - 2022-05-29
|
|
7
11
|
### Changed
|
|
8
12
|
- Improved call error logs in Sentry
|
package/examples/bundle-test.js
CHANGED
|
@@ -56261,12 +56261,10 @@ WildEmitter.mixin(WildEmitter);
|
|
|
56261
56261
|
|
|
56262
56262
|
var Utility = params.Utility,
|
|
56263
56263
|
currentModuleInstance = this,
|
|
56264
|
-
Sentry = params.Sentry,
|
|
56265
56264
|
asyncClient = params.asyncClient,
|
|
56266
56265
|
chatEvents = params.chatEvents,
|
|
56267
56266
|
chatMessaging = params.chatMessaging,
|
|
56268
56267
|
token = params.token,
|
|
56269
|
-
messagesCallbacks = {},
|
|
56270
56268
|
asyncRequestTimeouts = {},
|
|
56271
56269
|
chatMessageVOTypes = {
|
|
56272
56270
|
CREATE_THREAD: 1,
|
|
@@ -56437,7 +56435,7 @@ WildEmitter.mixin(WildEmitter);
|
|
|
56437
56435
|
currentCallParams = {},
|
|
56438
56436
|
currentCallId = null,
|
|
56439
56437
|
newCallId = null,
|
|
56440
|
-
shouldReconnectCallTimeout = null,
|
|
56438
|
+
//shouldReconnectCallTimeout = null,
|
|
56441
56439
|
callMetaDataTypes = {
|
|
56442
56440
|
POORCONNECTION: 1,
|
|
56443
56441
|
POORCONNECTIONRESOLVED: 2,
|
|
@@ -56466,7 +56464,6 @@ WildEmitter.mixin(WildEmitter);
|
|
|
56466
56464
|
callStopQueue = {
|
|
56467
56465
|
callStarted: false,
|
|
56468
56466
|
},
|
|
56469
|
-
callServerName,
|
|
56470
56467
|
callServerController = new callServerManager(),
|
|
56471
56468
|
messageTtl = params.messageTtl || 10000,
|
|
56472
56469
|
config = {
|
|
@@ -60273,8 +60270,8 @@ WildEmitter.mixin(WildEmitter);
|
|
|
60273
60270
|
|
|
60274
60271
|
//TODO: should be moved to event 113 when server fixes
|
|
60275
60272
|
|
|
60276
|
-
currentModuleInstance.pauseMice({});
|
|
60277
|
-
callUsers[chatMessaging.userInfo.id].audioStopManager.disableStream();
|
|
60273
|
+
// currentModuleInstance.pauseMice({});
|
|
60274
|
+
// callUsers[chatMessaging.userInfo.id].audioStopManager.disableStream();
|
|
60278
60275
|
|
|
60279
60276
|
return chatMessaging.sendMessage(sendMessageParams, {
|
|
60280
60277
|
onResult: function (result) {
|
|
@@ -60317,10 +60314,10 @@ WildEmitter.mixin(WildEmitter);
|
|
|
60317
60314
|
}
|
|
60318
60315
|
|
|
60319
60316
|
//TODO: Should be moved to event from chat server (when chat server fixes the bug)
|
|
60320
|
-
var myId = chatMessaging.userInfo.id
|
|
60321
|
-
|
|
60317
|
+
//var myId = chatMessaging.userInfo.id
|
|
60318
|
+
//, myUser = callUsers[myId];
|
|
60322
60319
|
|
|
60323
|
-
if(myUser.audioStopManager.isStreamPaused()) {
|
|
60320
|
+
/* if(myUser.audioStopManager.isStreamPaused()) {
|
|
60324
60321
|
if (myUser.audioStopManager.isStreamStopped()){
|
|
60325
60322
|
callStateController.activateParticipantStream(
|
|
60326
60323
|
myId,
|
|
@@ -60334,7 +60331,7 @@ WildEmitter.mixin(WildEmitter);
|
|
|
60334
60331
|
currentModuleInstance.resumeMice({});
|
|
60335
60332
|
}
|
|
60336
60333
|
myUser.audioStopManager.reset();
|
|
60337
|
-
}
|
|
60334
|
+
}*/
|
|
60338
60335
|
|
|
60339
60336
|
return chatMessaging.sendMessage(sendMessageParams, {
|
|
60340
60337
|
onResult: function (result) {
|
|
@@ -60664,7 +60661,6 @@ WildEmitter.mixin(WildEmitter);
|
|
|
60664
60661
|
var asyncClient,
|
|
60665
60662
|
peerId,
|
|
60666
60663
|
oldPeerId,
|
|
60667
|
-
userInfo,
|
|
60668
60664
|
token = params.token,
|
|
60669
60665
|
generalTypeCode = params.typeCode || 'default',
|
|
60670
60666
|
mapApiKey = params.mapApiKey || '8b77db18704aa646ee5aaea13e7370f4f88b9e8c',
|
|
@@ -60685,17 +60681,13 @@ WildEmitter.mixin(WildEmitter);
|
|
|
60685
60681
|
grantDeviceIdFromSSO = (params.grantDeviceIdFromSSO && typeof params.grantDeviceIdFromSSO === 'boolean')
|
|
60686
60682
|
? params.grantDeviceIdFromSSO
|
|
60687
60683
|
: false,
|
|
60688
|
-
messagesCallbacks = {},
|
|
60689
60684
|
messagesDelivery = {},
|
|
60690
60685
|
messagesSeen = {},
|
|
60691
60686
|
deliveryInterval,
|
|
60692
60687
|
deliveryIntervalPitch = params.deliveryIntervalPitch || 2000,
|
|
60693
60688
|
seenInterval,
|
|
60694
60689
|
seenIntervalPitch = params.seenIntervalPitch || 2000,
|
|
60695
|
-
sendMessageCallbacks = {},
|
|
60696
|
-
threadCallbacks = {},
|
|
60697
60690
|
getImageFromLinkObjects = {},
|
|
60698
|
-
asyncRequestTimeouts = {},
|
|
60699
60691
|
chatMessageVOTypes = {
|
|
60700
60692
|
CREATE_THREAD: 1,
|
|
60701
60693
|
MESSAGE: 2,
|
|
@@ -60871,10 +60863,6 @@ WildEmitter.mixin(WildEmitter);
|
|
|
60871
60863
|
'THREAD': 2,
|
|
60872
60864
|
'CONTACTS': 3
|
|
60873
60865
|
},
|
|
60874
|
-
currentCallId = null,
|
|
60875
|
-
callTopics = {},
|
|
60876
|
-
webpeers = {},
|
|
60877
|
-
webpeersMetadata = {},
|
|
60878
60866
|
callRequestController = {
|
|
60879
60867
|
callRequestReceived: false,
|
|
60880
60868
|
callEstablishedInMySide: false,
|
|
@@ -60885,10 +60873,6 @@ WildEmitter.mixin(WildEmitter);
|
|
|
60885
60873
|
return false;
|
|
60886
60874
|
}
|
|
60887
60875
|
},
|
|
60888
|
-
uiRemoteMedias = {},
|
|
60889
|
-
callStopQueue = {
|
|
60890
|
-
callStarted: false,
|
|
60891
|
-
},
|
|
60892
60876
|
systemMessageIntervalPitch = params.systemMessageIntervalPitch || 1000,
|
|
60893
60877
|
isTypingInterval,
|
|
60894
60878
|
protocol = params.protocol || 'websocket',
|
|
@@ -60901,7 +60885,6 @@ WildEmitter.mixin(WildEmitter);
|
|
|
60901
60885
|
queueConnectionTimeout = params.queueConnectionTimeout,
|
|
60902
60886
|
socketAddress = params.socketAddress,
|
|
60903
60887
|
serverName = params.serverName || '',
|
|
60904
|
-
callServerName,
|
|
60905
60888
|
wsConnectionWaitTime = params.wsConnectionWaitTime,
|
|
60906
60889
|
connectionRetryInterval = params.connectionRetryInterval,
|
|
60907
60890
|
msgPriority = params.msgPriority || 1,
|
|
@@ -60909,7 +60892,6 @@ WildEmitter.mixin(WildEmitter);
|
|
|
60909
60892
|
reconnectOnClose = params.reconnectOnClose,
|
|
60910
60893
|
asyncLogging = params.asyncLogging,
|
|
60911
60894
|
chatPingMessageInterval = 20000,
|
|
60912
|
-
sendPingTimeout,
|
|
60913
60895
|
getUserInfoTimeout,
|
|
60914
60896
|
config = {
|
|
60915
60897
|
getHistoryCount: 50
|
|
@@ -61002,14 +60984,13 @@ WildEmitter.mixin(WildEmitter);
|
|
|
61002
60984
|
},
|
|
61003
60985
|
getUserInfoRetry = 5,
|
|
61004
60986
|
getUserInfoRetryCount = 0,
|
|
61005
|
-
chatState = false,
|
|
61006
60987
|
chatFullStateObject = {},
|
|
61007
60988
|
httpRequestObject = {},
|
|
61008
60989
|
connectionCheckTimeout = params.connectionCheckTimeout,
|
|
61009
60990
|
connectionCheckTimeoutThreshold = params.connectionCheckTimeoutThreshold,
|
|
61010
60991
|
httpRequestTimeout = (params.httpRequestTimeout >= 0) ? params.httpRequestTimeout : 0,
|
|
61011
60992
|
asyncRequestTimeout = (typeof params.asyncRequestTimeout === 'number' && params.asyncRequestTimeout >= 0) ? params.asyncRequestTimeout : 0,
|
|
61012
|
-
callRequestTimeout = (typeof params.callRequestTimeout === 'number' && params.callRequestTimeout >= 0) ? params.callRequestTimeout : 10000,
|
|
60993
|
+
//callRequestTimeout = (typeof params.callRequestTimeout === 'number' && params.callRequestTimeout >= 0) ? params.callRequestTimeout : 10000,
|
|
61013
60994
|
httpUploadRequestTimeout = (params.httpUploadRequestTimeout >= 0) ? params.httpUploadRequestTimeout : 0,
|
|
61014
60995
|
actualTimingLog = (params.asyncLogging.actualTiming && typeof params.asyncLogging.actualTiming === 'boolean')
|
|
61015
60996
|
? params.asyncLogging.actualTiming
|
package/package.json
CHANGED
package/src/call.module.js
CHANGED
|
@@ -16,12 +16,10 @@
|
|
|
16
16
|
|
|
17
17
|
var Utility = params.Utility,
|
|
18
18
|
currentModuleInstance = this,
|
|
19
|
-
Sentry = params.Sentry,
|
|
20
19
|
asyncClient = params.asyncClient,
|
|
21
20
|
chatEvents = params.chatEvents,
|
|
22
21
|
chatMessaging = params.chatMessaging,
|
|
23
22
|
token = params.token,
|
|
24
|
-
messagesCallbacks = {},
|
|
25
23
|
asyncRequestTimeouts = {},
|
|
26
24
|
chatMessageVOTypes = {
|
|
27
25
|
CREATE_THREAD: 1,
|
|
@@ -192,7 +190,7 @@
|
|
|
192
190
|
currentCallParams = {},
|
|
193
191
|
currentCallId = null,
|
|
194
192
|
newCallId = null,
|
|
195
|
-
shouldReconnectCallTimeout = null,
|
|
193
|
+
//shouldReconnectCallTimeout = null,
|
|
196
194
|
callMetaDataTypes = {
|
|
197
195
|
POORCONNECTION: 1,
|
|
198
196
|
POORCONNECTIONRESOLVED: 2,
|
|
@@ -221,7 +219,6 @@
|
|
|
221
219
|
callStopQueue = {
|
|
222
220
|
callStarted: false,
|
|
223
221
|
},
|
|
224
|
-
callServerName,
|
|
225
222
|
callServerController = new callServerManager(),
|
|
226
223
|
messageTtl = params.messageTtl || 10000,
|
|
227
224
|
config = {
|
|
@@ -4028,8 +4025,8 @@
|
|
|
4028
4025
|
|
|
4029
4026
|
//TODO: should be moved to event 113 when server fixes
|
|
4030
4027
|
|
|
4031
|
-
currentModuleInstance.pauseMice({});
|
|
4032
|
-
callUsers[chatMessaging.userInfo.id].audioStopManager.disableStream();
|
|
4028
|
+
// currentModuleInstance.pauseMice({});
|
|
4029
|
+
// callUsers[chatMessaging.userInfo.id].audioStopManager.disableStream();
|
|
4033
4030
|
|
|
4034
4031
|
return chatMessaging.sendMessage(sendMessageParams, {
|
|
4035
4032
|
onResult: function (result) {
|
|
@@ -4072,10 +4069,10 @@
|
|
|
4072
4069
|
}
|
|
4073
4070
|
|
|
4074
4071
|
//TODO: Should be moved to event from chat server (when chat server fixes the bug)
|
|
4075
|
-
var myId = chatMessaging.userInfo.id
|
|
4076
|
-
|
|
4072
|
+
//var myId = chatMessaging.userInfo.id
|
|
4073
|
+
//, myUser = callUsers[myId];
|
|
4077
4074
|
|
|
4078
|
-
if(myUser.audioStopManager.isStreamPaused()) {
|
|
4075
|
+
/* if(myUser.audioStopManager.isStreamPaused()) {
|
|
4079
4076
|
if (myUser.audioStopManager.isStreamStopped()){
|
|
4080
4077
|
callStateController.activateParticipantStream(
|
|
4081
4078
|
myId,
|
|
@@ -4089,7 +4086,7 @@
|
|
|
4089
4086
|
currentModuleInstance.resumeMice({});
|
|
4090
4087
|
}
|
|
4091
4088
|
myUser.audioStopManager.reset();
|
|
4092
|
-
}
|
|
4089
|
+
}*/
|
|
4093
4090
|
|
|
4094
4091
|
return chatMessaging.sendMessage(sendMessageParams, {
|
|
4095
4092
|
onResult: function (result) {
|
package/src/chat.js
CHANGED
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
var asyncClient,
|
|
54
54
|
peerId,
|
|
55
55
|
oldPeerId,
|
|
56
|
-
userInfo,
|
|
57
56
|
token = params.token,
|
|
58
57
|
generalTypeCode = params.typeCode || 'default',
|
|
59
58
|
mapApiKey = params.mapApiKey || '8b77db18704aa646ee5aaea13e7370f4f88b9e8c',
|
|
@@ -74,17 +73,13 @@
|
|
|
74
73
|
grantDeviceIdFromSSO = (params.grantDeviceIdFromSSO && typeof params.grantDeviceIdFromSSO === 'boolean')
|
|
75
74
|
? params.grantDeviceIdFromSSO
|
|
76
75
|
: false,
|
|
77
|
-
messagesCallbacks = {},
|
|
78
76
|
messagesDelivery = {},
|
|
79
77
|
messagesSeen = {},
|
|
80
78
|
deliveryInterval,
|
|
81
79
|
deliveryIntervalPitch = params.deliveryIntervalPitch || 2000,
|
|
82
80
|
seenInterval,
|
|
83
81
|
seenIntervalPitch = params.seenIntervalPitch || 2000,
|
|
84
|
-
sendMessageCallbacks = {},
|
|
85
|
-
threadCallbacks = {},
|
|
86
82
|
getImageFromLinkObjects = {},
|
|
87
|
-
asyncRequestTimeouts = {},
|
|
88
83
|
chatMessageVOTypes = {
|
|
89
84
|
CREATE_THREAD: 1,
|
|
90
85
|
MESSAGE: 2,
|
|
@@ -260,10 +255,6 @@
|
|
|
260
255
|
'THREAD': 2,
|
|
261
256
|
'CONTACTS': 3
|
|
262
257
|
},
|
|
263
|
-
currentCallId = null,
|
|
264
|
-
callTopics = {},
|
|
265
|
-
webpeers = {},
|
|
266
|
-
webpeersMetadata = {},
|
|
267
258
|
callRequestController = {
|
|
268
259
|
callRequestReceived: false,
|
|
269
260
|
callEstablishedInMySide: false,
|
|
@@ -274,10 +265,6 @@
|
|
|
274
265
|
return false;
|
|
275
266
|
}
|
|
276
267
|
},
|
|
277
|
-
uiRemoteMedias = {},
|
|
278
|
-
callStopQueue = {
|
|
279
|
-
callStarted: false,
|
|
280
|
-
},
|
|
281
268
|
systemMessageIntervalPitch = params.systemMessageIntervalPitch || 1000,
|
|
282
269
|
isTypingInterval,
|
|
283
270
|
protocol = params.protocol || 'websocket',
|
|
@@ -290,7 +277,6 @@
|
|
|
290
277
|
queueConnectionTimeout = params.queueConnectionTimeout,
|
|
291
278
|
socketAddress = params.socketAddress,
|
|
292
279
|
serverName = params.serverName || '',
|
|
293
|
-
callServerName,
|
|
294
280
|
wsConnectionWaitTime = params.wsConnectionWaitTime,
|
|
295
281
|
connectionRetryInterval = params.connectionRetryInterval,
|
|
296
282
|
msgPriority = params.msgPriority || 1,
|
|
@@ -298,7 +284,6 @@
|
|
|
298
284
|
reconnectOnClose = params.reconnectOnClose,
|
|
299
285
|
asyncLogging = params.asyncLogging,
|
|
300
286
|
chatPingMessageInterval = 20000,
|
|
301
|
-
sendPingTimeout,
|
|
302
287
|
getUserInfoTimeout,
|
|
303
288
|
config = {
|
|
304
289
|
getHistoryCount: 50
|
|
@@ -391,14 +376,13 @@
|
|
|
391
376
|
},
|
|
392
377
|
getUserInfoRetry = 5,
|
|
393
378
|
getUserInfoRetryCount = 0,
|
|
394
|
-
chatState = false,
|
|
395
379
|
chatFullStateObject = {},
|
|
396
380
|
httpRequestObject = {},
|
|
397
381
|
connectionCheckTimeout = params.connectionCheckTimeout,
|
|
398
382
|
connectionCheckTimeoutThreshold = params.connectionCheckTimeoutThreshold,
|
|
399
383
|
httpRequestTimeout = (params.httpRequestTimeout >= 0) ? params.httpRequestTimeout : 0,
|
|
400
384
|
asyncRequestTimeout = (typeof params.asyncRequestTimeout === 'number' && params.asyncRequestTimeout >= 0) ? params.asyncRequestTimeout : 0,
|
|
401
|
-
callRequestTimeout = (typeof params.callRequestTimeout === 'number' && params.callRequestTimeout >= 0) ? params.callRequestTimeout : 10000,
|
|
385
|
+
//callRequestTimeout = (typeof params.callRequestTimeout === 'number' && params.callRequestTimeout >= 0) ? params.callRequestTimeout : 10000,
|
|
402
386
|
httpUploadRequestTimeout = (params.httpUploadRequestTimeout >= 0) ? params.httpUploadRequestTimeout : 0,
|
|
403
387
|
actualTimingLog = (params.asyncLogging.actualTiming && typeof params.asyncLogging.actualTiming === 'boolean')
|
|
404
388
|
? params.asyncLogging.actualTiming
|