leancloud-realtime
Advanced tools
Comparing version 3.4.0 to 3.4.1
{ | ||
"name": "leancloud-realtime", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"homepage": "https://github.com/leancloud/js-realtime-sdk/", | ||
@@ -5,0 +5,0 @@ "description": "LeanCloud JavaScript Realtime SDK", |
@@ -0,1 +1,12 @@ | ||
<a name="3.4.1"></a> | ||
## 3.4.1 (2017-04-17) | ||
### Bug Fixes | ||
* **IMClient:** 修复了收到在线消息时 `unreadmessagescountupdate` 事件回调的 `conversations` 参数不是数组的问题 ([#547](https://github.com/leancloud/js-realtime-sdk/issues/547)) ([9df01d8](https://github.com/leancloud/js-realtime-sdk/commit/9df01d8)) | ||
* **Read:** 修复了标记对话已读对系统消息不生效的问题 ([#544](https://github.com/leancloud/js-realtime-sdk/issues/544)) ([28dcf50](https://github.com/leancloud/js-realtime-sdk/commit/28dcf50)) | ||
<a name="3.4.0"></a> | ||
@@ -54,3 +65,3 @@ # 3.4.0 (2017-04-06) | ||
在浏览器中,SDK 会通过 Network Information API 感知到网络的变化自动进入离线状态,在进入离线状态时时会派发 `offline` 事件,在恢复在线时会派发 `online` 事件。在其他环境中可以通过调用 `Realtime#pause` 与 `Realtime#resume` 方法来手动进入、离开离线状态,可以实现实时通信在 App 被切到后台挂起,切回前台恢复等功能。 | ||
在浏览器中,SDK 会通过 Network Information API 感知到网络的变化自动进入离线状态,在进入离线状态时会派发 `offline` 事件,在恢复在线时会派发 `online` 事件。在其他环境中可以通过调用 `Realtime#pause` 与 `Realtime#resume` 方法来手动进入或离开离线状态,可以实现实时通信在 App 被切到后台挂起、切回前台恢复等功能。 | ||
@@ -57,0 +68,0 @@ - `Realtime` 与 `IMClient` 增加了 `offline` 与 `online` 事件 |
{ | ||
"name": "leancloud-realtime", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "LeanCloud Realtime Message JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "./dist/realtime.js", |
@@ -146,3 +146,3 @@ import EventEmitter from 'eventemitter3'; | ||
internal(this).unreadMessagesCount = value; | ||
this._client.emit('unreadmessagescountupdate', this); | ||
this._client.emit('unreadmessagescountupdate', [this]); | ||
} | ||
@@ -801,4 +801,4 @@ } | ||
this.unreadMessagesCount = 0; | ||
// 跳过暂态会话、系统对话 | ||
if (this.transient || this.system) return Promise.resolve(this); | ||
// 跳过暂态会话 | ||
if (this.transient) return Promise.resolve(this); | ||
const client = this._client; | ||
@@ -805,0 +805,0 @@ if (!internal(client).readConversationsBuffer) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7798287