Browse Source

Merge remote-tracking branch 'origin/master'

master
jiahao 5 years ago
parent
commit
016fffd10b
2 changed files with 6 additions and 1 deletions
  1. +4
    -1
      lib/data/chat_data_mgr.dart
  2. +2
    -0
      lib/utils/msgHandler.dart

+ 4
- 1
lib/data/chat_data_mgr.dart View File

@@ -314,8 +314,11 @@ class ChatDataMgr {
print('数据为空,无法插入');
} else {
record.insert(0, msg);
// print(MsgHandler.time);
//int after = DateTime.now().millisecondsSinceEpoch-MsgHandler.time;
// print('******插入数据 use $after');
// print('******record length ${record.length} ${msg.sessionId}');
//record.add(msg);
SqlUtil.insert(msg);
updateLastRecordWithMsg(msg);


+ 2
- 0
lib/utils/msgHandler.dart View File

@@ -483,6 +483,8 @@ class MsgHandler {
}
} else {
//聊天消息
//time = DateTime.now().millisecondsSinceEpoch;
//print('******收到聊天消息 $time');
int sessionId = chat.targetId;
print('sessionId $sessionId');
if (isGroup) {


Loading…
Cancel
Save