如图所示,在会话列表上面 ,显示的昵称不是昵称, 在点击之后进入会话框里面或者等待大约几分钟左右或者退出再进入 昵称和头像才可以显示正确的头像和昵称 ,这个问题可以解决吗? 消息是新用户登录,后台推送的提示消息 调用得sdk中方法发送过去得,代码:
public static Boolean sendMsgPrivate(String sendUserId, String targetUserId, String text) {
Conversation conversation = new Conversation();
conversation.setTarget(targetUserId);
conversation.setType(ProtoConstants.ConversationType.ConversationType_Private);
MessagePayload payload = TextMessageContentBuilder.newBuilder(text).build();
IMResult<SendMessageResult> resultSendMessage = null;
try {
resultSendMessage = MessageAdmin.sendMessage(sendUserId, conversation, payload, null);
} catch (Exception e) {
throw new BusinessException("IM-PRIVATE消息发送失败");
}
return resultSendMessage != null && resultSendMessage.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS;
}