Skip to content

Commit

Permalink
5.3.9版本发布
Browse files Browse the repository at this point in the history
  • Loading branch information
jiejunping committed Mar 2, 2023
1 parent d88d26e commit 132b477
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion udesksdk/UdeskSDKUI/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ dependencies {
implementation group: 'org.ccil.cowan.tagsoup', name: 'tagsoup', version: '1.2.1'
implementation 'org.igniterealtime.smack:smack-android-extensions:4.2.4'
implementation 'org.igniterealtime.smack:smack-tcp:4.2.4'
api files('libs/udesk_sdk_5.3.7.jar')
api files('libs/udesk_sdk_5.3.9.jar')
}
Binary file not shown.
3 changes: 2 additions & 1 deletion udesksdk/UdeskSDKUI/src/main/java/cn/udesk/UdeskUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,8 @@ public static ArrayList<MessageInfo> buildAllMessage(Context context,LogBean mes
Content content = message.getContent();
if (content.getData() != null) {
ArrayList<MessageInfo> messageInfos = new ArrayList<>();
if (!TextUtils.isEmpty(content.getData().getContent()) || content.getData().getTopAsk()!= null){
if (!TextUtils.isEmpty(content.getData().getContent()) || content.getData().getTopAsk()!= null
|| (!TextUtils.isEmpty(content.getData().getFlowContent()) && content.getData().getFlowId() > 0 ) ){
MessageInfo info = buildMsg(message.getAgent_nick_name(), message.getAgent_avatar(), stringToLong(message.getCreated_at()),
UdeskUtils.objectToString(message.getMessage_id()), message.getContent().getType(), content.getData().getContent(),
UdeskConst.ChatMsgReadFlag.read, UdeskConst.SendFlag.RESULT_SUCCESS, UdeskConst.PlayFlag.NOPLAY, UdeskConst.ChatMsgDirection.Recv,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -732,11 +732,8 @@ private boolean showRecommended(final LinearLayout container) {
List<TopAskBean> topAsk = message.getTopAsk();
container.removeAllViews();
if (topAsk != null && topAsk.size() > 0) {
if (dealUseful()) {
viewParams = new LinearLayout.LayoutParams(UdeskUtil.dip2px(mContext, 310), ViewGroup.LayoutParams.WRAP_CONTENT);
} else {
viewParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
}
dealUseful();
viewParams=new LinearLayout.LayoutParams(UdeskUtil.dip2px(mContext,310),ViewGroup.LayoutParams.WRAP_CONTENT);
container.setLayoutParams(viewParams);
if (!TextUtils.isEmpty(message.getRecommendationGuidance())){
View childView = LayoutInflater.from(mContext).inflate(R.layout.udesk_view_que_classify_recommend, container, false);
Expand Down
2 changes: 1 addition & 1 deletion udesksdk/udeskNewDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

android {
compileSdkVersion 33
buildToolsVersion '33.0.0'
buildToolsVersion '29.0.0'

defaultConfig {
applicationId "udesk.sdk.demo"
Expand Down

0 comments on commit 132b477

Please sign in to comment.