提交
This commit is contained in:
@@ -631,13 +631,13 @@
|
||||
// 1 在线 2离线
|
||||
NSInteger type = 1;
|
||||
type = [msg.Text[@"type"] integerValue];
|
||||
BOOL isOnline = type == 1?YES:NO;
|
||||
// BOOL isOnline = type == 1?YES:NO;
|
||||
// if (self.delegate && [self.delegate respondsToSelector:@selector(roomUserOnlineStatusDidChanged:userId:)]) {
|
||||
// [self.delegate roomUserOnlineStatusDidChanged:YES userId:userId];
|
||||
// }
|
||||
NSDictionary *parm = @{
|
||||
@"user_id":userId,
|
||||
@"is_online":[NSNumber numberWithBool:isOnline],
|
||||
@"is_online":[NSNumber numberWithInteger:type],
|
||||
};
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:noticeRoomUserOnlineStatusDidChanged object:parm];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user