Commit 7216aa65 by zhousil
parents 850ed020 d359c58c
Showing with 1 additions and 5 deletions
...@@ -158,10 +158,6 @@ class ChatCacheDatabaseController { ...@@ -158,10 +158,6 @@ class ChatCacheDatabaseController {
p.eid && (chat.last_msg_sender = p.eid); p.eid && (chat.last_msg_sender = p.eid);
p.type && (chat.last_msg_type = p.type); p.type && (chat.last_msg_type = p.type);
p.msg && (chat.last_msg_content = p.msg); p.msg && (chat.last_msg_content = p.msg);
p.unread && chat.unread_msg_count++;
if (p.unread === 0) {
chat.unread_msg_count = 0;
}
const u = store.put(chat, chat.id); const u = store.put(chat, chat.id);
u.onsuccess = () => resolve(); u.onsuccess = () => resolve();
u.onerror = () => resolve(); u.onerror = () => resolve();
......
...@@ -52,7 +52,7 @@ export const enum ImEnvironment { ...@@ -52,7 +52,7 @@ export const enum ImEnvironment {
export const socketMapping = new Map<ImEnvironment, string>([ export const socketMapping = new Map<ImEnvironment, string>([
[ImEnvironment.Dev, 'ws://hro.channel.jinsehuaqin.com:8080/ws'], [ImEnvironment.Dev, 'ws://hro.channel.jinsehuaqin.com:8080/ws'],
[ImEnvironment.Stage, ''], [ImEnvironment.Stage, 'wss://pre-channel.qinqinxiaobao.com/ws'],
[ImEnvironment.Pro, 'wss://channel.qinqinxiaobao.com/ws'], [ImEnvironment.Pro, 'wss://channel.qinqinxiaobao.com/ws'],
]); ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment