leancloud-realtime
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "leancloud-realtime", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"homepage": "https://github.com/leancloud/js-realtime-sdk/", | ||
@@ -26,5 +26,5 @@ "description": "LeanCloud JavaScript Realtime SDK", | ||
"devDependencies": { | ||
"mocha": "~2.4.5", | ||
"mocha": "^2.5.0", | ||
"sinon": "http://sinonjs.org/releases/sinon-1.17.3.js" | ||
} | ||
} |
@@ -0,1 +1,11 @@ | ||
<a name="3.0.2"></a> | ||
## 3.0.2 (2016-06-30) | ||
### Bug Fixes | ||
* **ConversationQuery:** 指定 `withLastMessagesRefreshed` 时,查询结果的 lastMessage 现在包含了完整的信息(`from`、`id`) ([#285](https://github.com/leancloud/js-realtime-sdk/issues/285)) ([51bda7e](https://github.com/leancloud/js-realtime-sdk/commit/51bda7e)) | ||
<a name="3.0.1"></a> | ||
@@ -2,0 +12,0 @@ ## 3.0.1 (2016-06-27) |
@@ -38,3 +38,3 @@ /* eslint-disable */ | ||
browserName: 'firefox', | ||
version: 'latest', | ||
version: '46', | ||
platform: 'Windows 7' | ||
@@ -41,0 +41,0 @@ }, { |
{ | ||
"name": "leancloud-realtime", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "LeanCloud Realtime Message JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/realtime.js", |
@@ -527,2 +527,5 @@ import Client from './client'; | ||
msg: 'lastMessage', | ||
msg_from: 'lastMessageFrom', | ||
msg_mid: 'lastMessageId', | ||
msg_timestamp: 'lastMessageTimestamp', | ||
m: 'members', | ||
@@ -536,2 +539,8 @@ attr: 'attributes', | ||
data.lastMessage = this._messageParser.parse(data.lastMessage); | ||
data.lastMessage.from = data.lastMessageFrom; | ||
data.lastMessage.id = data.lastMessageId; | ||
data.lastMessage.timestamp = new Date(data.lastMessageTimestamp); | ||
delete data.lastMessageFrom; | ||
delete data.lastMessageId; | ||
delete data.lastMessageTimestamp; | ||
} | ||
@@ -538,0 +547,0 @@ return new Conversation(data, this); |
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
2855302
26833