podchat-browser 12.9.7-snapshot.8 → 12.9.7
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/README.md +15 -14
- package/changelog.md +32 -1
- package/dist/node/buildConfig.json +1 -1
- package/dist/node/call.module.js +756 -3210
- package/dist/node/chat.js +1048 -1306
- package/dist/node/events.module.js +6 -29
- package/dist/node/lib/app.js +31 -0
- package/dist/node/lib/call/call.js +30 -0
- package/dist/node/lib/call/callManager.js +1296 -0
- package/dist/node/lib/call/callServerManager.js +37 -0
- package/dist/node/lib/call/callTopicManager.js +948 -0
- package/dist/node/lib/call/callUser.js +611 -0
- package/dist/node/lib/call/callUsers.js +127 -0
- package/dist/node/lib/call/callsList.js +112 -0
- package/dist/node/lib/call/deviceManager.js +4 -13
- package/dist/node/lib/call/deviceManager2.js +357 -0
- package/dist/node/lib/call/deviceStartStopManager.js +72 -0
- package/dist/node/lib/call/multitrack/callManager.js +1242 -0
- package/dist/node/lib/call/multitrack/callUser.js +627 -0
- package/dist/node/lib/call/multitrack/callUsers.js +133 -0
- package/dist/node/lib/call/multitrack/deviceManager.js +366 -0
- package/dist/node/lib/call/multitrack/peerConnectionManager.js +231 -0
- package/dist/node/lib/call/multitrack/webrtcPeer.js +304 -0
- package/dist/node/lib/call/sharedData.js +175 -0
- package/dist/node/lib/call/topicMetaDataManager.js +42 -0
- package/dist/node/lib/call/webrtcPeer.js +318 -0
- package/dist/node/lib/chat/reactionsMethods.js +281 -0
- package/dist/node/lib/chat/threadParticipantsMethods.js +203 -0
- package/dist/node/lib/constants.js +23 -2
- package/dist/node/lib/errorHandler.js +59 -43
- package/dist/node/lib/requestBlocker.js +104 -0
- package/dist/node/lib/sdkParams.js +50 -48
- package/dist/node/lib/store/eventEmitter.js +15 -13
- package/dist/node/lib/store/index.js +22 -8
- package/dist/node/lib/store/reactionsList.js +125 -0
- package/dist/node/lib/store/reactionsSummaries.js +245 -0
- package/dist/node/lib/store/threads.js +56 -58
- package/dist/node/lib/store/user.js +34 -0
- package/dist/node/messaging.module.js +55 -69
- package/dist/podchat-browser-bundle.js +47023 -46803
- package/examples/index.html +118 -13
- package/package.json +4 -3
- package/src/buildConfig.json +1 -1
- package/src/call.module.js +723 -3189
- package/src/chat.js +1062 -1158
- package/src/events.module.js +7 -25
- package/src/lib/app.js +20 -0
- package/src/lib/call/call.js +21 -0
- package/src/lib/call/callManager.js +1061 -0
- package/src/lib/call/callServerManager.js +32 -0
- package/src/lib/call/callTopicManager.js +893 -0
- package/src/lib/call/callUser.js +382 -0
- package/src/lib/call/callUsers.js +95 -0
- package/src/lib/call/callsList.js +53 -0
- package/src/lib/call/deviceManager.js +4 -5
- package/src/lib/call/deviceManager2.js +248 -0
- package/src/lib/call/deviceStartStopManager.js +66 -0
- package/src/lib/call/sharedData.js +169 -0
- package/src/lib/call/topicMetaDataManager.js +38 -0
- package/src/lib/call/webrtcPeer.js +249 -0
- package/src/lib/chat/reactionsMethods.js +287 -0
- package/src/lib/chat/threadParticipantsMethods.js +198 -0
- package/src/lib/constants.js +23 -2
- package/src/lib/errorHandler.js +51 -32
- package/src/lib/requestBlocker.js +93 -0
- package/src/lib/sdkParams.js +50 -46
- package/src/lib/store/eventEmitter.js +12 -10
- package/src/lib/store/index.js +19 -7
- package/src/lib/store/reactionsList.js +113 -0
- package/src/lib/store/reactionsSummaries.js +183 -0
- package/src/lib/store/threads.js +52 -51
- package/src/lib/store/user.js +15 -0
- package/src/messaging.module.js +273 -286
package/README.md
CHANGED
|
@@ -10,18 +10,6 @@ All notable changes to this project will be documented here.
|
|
|
10
10
|
|
|
11
11
|
- Search in threads metadata
|
|
12
12
|
|
|
13
|
-
## [4.10.0] - 2019-06-24
|
|
14
|
-
|
|
15
|
-
### Added
|
|
16
|
-
|
|
17
|
-
- ACL functionalities
|
|
18
|
-
- Getting admins list, `getThreadAdmins()`
|
|
19
|
-
- Setting / Removing new admin with roles, `setAdmin()`
|
|
20
|
-
- `isTyping` for users, you can call `startTyping()` and `stopTyping()` to handle typing system messages
|
|
21
|
-
- `clearHistory()` function to fully clear thread's history
|
|
22
|
-
- `deleteMultipleMessages()` function to delete an array of message at once
|
|
23
|
-
- `getNotSeenDuration()` function to get the not seen time duration of user being off the application in miliseconds
|
|
24
|
-
|
|
25
13
|
In order to see complete list of changelog please visit [ChangeLog](https://github.com/masoudmanson/pod-chat/blob/master/changelog.md)
|
|
26
14
|
|
|
27
15
|
## Code Example
|
|
@@ -29,7 +17,7 @@ In order to see complete list of changelog please visit [ChangeLog](https://gith
|
|
|
29
17
|
Create an Javascript file e.x `index.js` and put following code there:
|
|
30
18
|
|
|
31
19
|
```javascript
|
|
32
|
-
var Chat = require('podchat');
|
|
20
|
+
var Chat = require('podchat-browser');
|
|
33
21
|
|
|
34
22
|
var params = {
|
|
35
23
|
appId: new Date().getTime(),
|
|
@@ -181,13 +169,26 @@ You'll get all the Events which are related to File Uploads in fileUploadEvents
|
|
|
181
169
|
|
|
182
170
|
```javascript
|
|
183
171
|
/**
|
|
184
|
-
* Listen to File Uploads
|
|
172
|
+
* Listen to File Uploads Events
|
|
185
173
|
*/
|
|
186
174
|
chatAgent.on("fileUploadEvents", function(event) {
|
|
187
175
|
console.log(event);
|
|
188
176
|
});
|
|
189
177
|
```
|
|
190
178
|
|
|
179
|
+
### fileDownloadEvents
|
|
180
|
+
|
|
181
|
+
You'll get all the Events which are related to File Download Events in fileDownloadEvents listener
|
|
182
|
+
|
|
183
|
+
```javascript
|
|
184
|
+
/**
|
|
185
|
+
* Listen to File Download Events
|
|
186
|
+
*/
|
|
187
|
+
chatAgent.on("fileDownloadEvents", function(event) {
|
|
188
|
+
console.log(event);
|
|
189
|
+
});
|
|
190
|
+
```
|
|
191
|
+
|
|
191
192
|
## User Functions
|
|
192
193
|
|
|
193
194
|
### getUserInfo
|
package/changelog.md
CHANGED
|
@@ -5,6 +5,37 @@ to see complete list of changelog please visit [ChangeLog](http://gp.fanapsoft.i
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [12.9.7] 25-11-2023
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Method replyPrivately
|
|
12
|
+
- Method replyFileMessagePrivately
|
|
13
|
+
- Method getThreadsLight
|
|
14
|
+
- Method getPinMessages
|
|
15
|
+
- Method lastMessageInfo
|
|
16
|
+
- Method addReaction
|
|
17
|
+
- Method removeReaction
|
|
18
|
+
- Method replaceReaction
|
|
19
|
+
- Method getReactionsSummaries
|
|
20
|
+
- cache for getReactionsSummaries
|
|
21
|
+
- Method getReactionsList
|
|
22
|
+
- cache for getReactionsList
|
|
23
|
+
- Ability to switch async protocols
|
|
24
|
+
- uniqueId for ping messages
|
|
25
|
+
- Parameter usernames to method removeParticipants
|
|
26
|
+
- xss check for messages contents
|
|
27
|
+
- requestBlocking for some call actions
|
|
28
|
+
- callId to REJECT_GROUP_CALL
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
- socketState 0 on event chatState was not being fired
|
|
32
|
+
- mute/unmute in calls causing performance bug in browsers
|
|
33
|
+
- screenShare cropped when sharing a non fullscreen window
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
- Internal changes making the sdk more modular
|
|
37
|
+
- Rewrite call module
|
|
38
|
+
|
|
8
39
|
## [12.9.6] 29-07-2023
|
|
9
40
|
## [12.9.6-snapshot.4] 19-07-2023
|
|
10
41
|
## [12.9.6-snapshot.3] 19-07-2023
|
|
@@ -47,7 +78,7 @@ to see complete list of changelog please visit [ChangeLog](http://gp.fanapsoft.i
|
|
|
47
78
|
- Fix lastSeenMessageTime (19 Numbers) on type 31:LAST_SEEN_UPDATED
|
|
48
79
|
- timeNanos & Changed time (19 Numbers) in pinMessage
|
|
49
80
|
|
|
50
|
-
|
|
81
|
+
### Changed
|
|
51
82
|
- Changed cached unreadCount calculation on new messages
|
|
52
83
|
|
|
53
84
|
## [12.9.3] 2023-06-20
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"12.9.7
|
|
1
|
+
{"version":"12.9.7","date":"۱۴۰۲/۹/۴","VersionInfo":"Release: true, Snapshot: false, Is For Test: false"}
|