|
@@ -242,7 +242,7 @@
|
|
|
if ([g_myself.chatSyncTimeLen longLongValue] == 0 || [g_myself.chatSyncTimeLen longLongValue] == -1) {
|
|
|
syncTimeLen = 0;
|
|
|
}
|
|
|
- [g_default setBool:YES forKey:kISFirstGetLastChatList];
|
|
|
+ // [g_default setBool:YES forKey:kISFirstGetLastChatList];
|
|
|
|
|
|
}else {
|
|
|
syncTimeLen = g_server.lastOfflineTime * 1000.0;
|
|
@@ -934,7 +934,7 @@
|
|
|
- (void) delAllChatLogNotifi:(NSNotification *)notif {
|
|
|
[self getServerData];
|
|
|
self.msgTotal = 0;
|
|
|
- _strCount=0;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -951,13 +951,19 @@
|
|
|
NSTimeInterval timeSend =[obj.message.timeSend timeIntervalSince1970];
|
|
|
NSTimeInterval currentTime =[[NSDate date] timeIntervalSince1970];
|
|
|
|
|
|
- //NSLog(@"obj.user.userNickname %@",obj.user.userNickname);
|
|
|
JXMessageObject *userx=obj.message;
|
|
|
- if ([userx.fromUserId isEqualToString:@"10000"]||timeSend>currentTime ||[obj.user.groupStatus intValue]==2||[obj.user.groupStatus intValue]==1||obj.user.userNickname.length==0) {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ NSLog(@"obj.user.userNickname %@ === userx.content %@",obj.user.userNickname,userx.content);
|
|
|
+
|
|
|
+ if ([userx.fromUserId isEqualToString:@"10000"]||timeSend>currentTime ||[obj.user.groupStatus intValue]==2||[obj.user.groupStatus intValue]==1||obj.user.userNickname.length==0||userx.content.length==0||([obj.message.type intValue] == kWCMessageTypeSuperDelete || [obj.message.type intValue] == kWCMessageTypeGroupActivity)) {
|
|
|
// [temArr insertObject:obj atIndex:0];
|
|
|
[_array removeObjectAtIndex:idx];
|
|
|
|
|
|
|
|
|
+
|
|
|
}else{
|
|
|
|
|
|
[temArr addObject:obj];
|
|
@@ -982,9 +988,7 @@
|
|
|
- (void)sendServiecGroupJid:(NSString *)jid{
|
|
|
|
|
|
|
|
|
- [_array enumerateObjectsUsingBlock:^(JXMsgAndUserObject * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
|
|
-
|
|
|
- }];
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|
|
@@ -1056,9 +1060,7 @@
|
|
|
cell.user = dict.user;
|
|
|
cell.userId = dict.user.userId;
|
|
|
|
|
|
- if (cell.user.groupType.length) {
|
|
|
-
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
// cell.bage = [NSString stringWithFormat:@"%d",[dict.user.msgsNew intValue]];
|
|
@@ -1089,7 +1091,7 @@
|
|
|
cell.headImage=@"ALOGO_1200";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
NSString *lastContet = [dict.message getLastContent];
|
|
|
BOOL flag = NO;
|
|
|
if ([dict.user.isAtMe intValue] == 1 && _seekTextField.text.length <= 0 && (dict.user.roomFlag || dict.user.roomId.length > 0)) {
|
|
@@ -1989,8 +1991,8 @@
|
|
|
case login_status_yes:{
|
|
|
// self.title = Localized(@"JXMsgViewController_OnLine");
|
|
|
// 同步最近一条聊天记录
|
|
|
- // [self getLastChatList];
|
|
|
- //[_activity stopAnimating];
|
|
|
+ [self getLastChatList];
|
|
|
+ [_activity stopAnimating];
|
|
|
}
|
|
|
|
|
|
break;
|
|
@@ -2475,8 +2477,8 @@
|
|
|
|
|
|
//访问DB获取好友消息列表
|
|
|
// NSMutableArray* p = [[JXMessageObject sharedInstance] fetchRecentChat];
|
|
|
- //[self getServerData];
|
|
|
- // [self getLastChatList];
|
|
|
+ [self getServerData];
|
|
|
+ // [self getLastChatList];
|
|
|
|
|
|
}
|
|
|
|