@aochuang/client-sdk 1.0.379-wework-6 → 1.0.379-wework-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/client-sdk",
3
- "version": "1.0.379-wework-6",
3
+ "version": "1.0.379-wework-7",
4
4
  "description": "",
5
5
  "files": [
6
6
  "common",
@@ -544,7 +544,7 @@ class ClientChat {
544
544
  }
545
545
  const localSession = this.session.getSessionByLocal(sessionId)
546
546
  const oldUnread = localSession ? (localSession.unreadMsgCount || 0) : 0
547
- return this.session.refreshSession(sessionId).then(rs => {
547
+ return this.session.getSession(sessionId).then(rs => {
548
548
  const serverSession = rs && rs.data
549
549
  const newUnread = serverSession ? (serverSession.unreadMsgCount || 0) : 0
550
550
  const accountId = (serverSession && serverSession.qwAccountId) || qwAccountId
@@ -615,7 +615,7 @@ class ClientChat {
615
615
  console.warn('[client-chat] refresh added room failed', error)
616
616
  })]
617
617
  if (sessionId) {
618
- tasks.push(this.session.refreshSession(sessionId).then(rs => {
618
+ tasks.push(this.session.getSession(sessionId).then(rs => {
619
619
  const serverSession = rs && rs.data
620
620
  const unreadDiff = (serverSession ? (serverSession.unreadMsgCount || 0) : 0) - oldUnread
621
621
  const changedAccountId = (serverSession && serverSession.qwAccountId) || qwAccountId