|
@@ -467,6 +467,10 @@
|
|
|
self.title =[NSString stringWithFormat:@"%@ (%@) ",userName, str]; ;
|
|
|
|
|
|
if ([g_config.isOpenOnlineStatus boolValue]) {
|
|
|
+
|
|
|
+ if (userName==nil) {
|
|
|
+ userName=@"";
|
|
|
+ }
|
|
|
if (_useInfoTempChat==11) {
|
|
|
|
|
|
self.title = [NSString stringWithFormat:@"%@ 临时会话 (%@) ",userName, str];
|
|
@@ -474,6 +478,10 @@
|
|
|
self.title = [NSString stringWithFormat:@"%@ (%@) ",userName, str];
|
|
|
}
|
|
|
}else {
|
|
|
+ if (userName==nil) {
|
|
|
+ userName=@"";
|
|
|
+ }
|
|
|
+
|
|
|
if (_useInfoTempChat==11) {
|
|
|
|
|
|
self.title =[NSString stringWithFormat:@"%@(%@)",userName, @"临时会话"] ;
|
|
@@ -490,6 +498,11 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if (_sidaiPushstrInt==123456) {
|
|
|
+
|
|
|
+ self.title =[NSString stringWithFormat:@"%@(%@)",_sidaiPushTitle, @"临时会话"] ;
|
|
|
+ }
|
|
|
+
|
|
|
[self setAudioIconFrame];
|
|
|
}
|
|
|
|
|
@@ -3246,12 +3259,17 @@ _strURLGoback=@"";
|
|
|
JXMessageObject *msg=[[JXMessageObject alloc]init];
|
|
|
msg.timeSend = [NSDate date];
|
|
|
msg.fromUserId = MY_USER_ID;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if([self.roomJid length]>0){
|
|
|
- msg.toUserId = self.roomJid;
|
|
|
+ msg.toUserId = _roomJid;
|
|
|
msg.isGroup = YES;
|
|
|
msg.fromUserName = _userNickName;
|
|
|
- }
|
|
|
- else{
|
|
|
+ } else{
|
|
|
+
|
|
|
+
|
|
|
/*
|
|
|
if (self.isGroupMessages) {
|
|
|
if (_isGroupSendCancel) {
|
|
@@ -3267,10 +3285,22 @@ _strURLGoback=@"";
|
|
|
}
|
|
|
msg.isGroup = NO;
|
|
|
*/
|
|
|
+ msg.fromUserName = MY_USER_NAME;
|
|
|
if (self.isGroupMessages) {
|
|
|
msg.toUserId = userId;
|
|
|
}else {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
msg.toUserId = chatPerson.userId;
|
|
|
+
|
|
|
+ if (_sidaiPushstrInt==123456&&chatPerson==nil) {
|
|
|
+
|
|
|
+ //userId = _sidaiPushstr;
|
|
|
+ msg.toUserId = _sidaiPushstr;
|
|
|
+ msg.fromUserName = MY_USER_NAME;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
msg.isGroup = NO;
|
|
|
}
|
|
@@ -3302,12 +3332,18 @@ _strURLGoback=@"";
|
|
|
|
|
|
|
|
|
//发往哪里
|
|
|
- if (self.isGroupMessages) {
|
|
|
+ if (_isGroupMessages) {
|
|
|
[msg insert:userId];
|
|
|
[g_xmpp sendMessage:msg roomName:userId];//发送消息
|
|
|
+
|
|
|
+
|
|
|
}else {
|
|
|
- [msg insert:self.roomJid];
|
|
|
+
|
|
|
+
|
|
|
+ [msg insert:_roomJid];
|
|
|
[g_xmpp sendMessage:msg roomName:self.roomJid];//发送消息
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
if (self.isCYMSGgroupANDFriendy){
|
|
|
|
|
@@ -7178,7 +7214,15 @@ _strURLGoback=@"";
|
|
|
[self setChatTitle:chatPerson.remarkName.length > 0 ? chatPerson.remarkName : chatPerson.userNickname];
|
|
|
}else {
|
|
|
// self.title = [NSString stringWithFormat:@"%@(%@)",dict[@"nickname"],str];
|
|
|
- [self setChatTitle:dict[@"nickname"]];
|
|
|
+
|
|
|
+ if (_sidaiPushstrInt==123456) {
|
|
|
+
|
|
|
+
|
|
|
+ [self setChatTitle:_sidaiPushTitle];
|
|
|
+ }else{
|
|
|
+
|
|
|
+ [self setChatTitle:dict[@"nickname"]];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|