fix [分享飞机票底部提示需去除]

This commit is contained in:
zlzw 2024-03-23 13:53:47 +08:00
parent 62419c86cf
commit 578de1f101

View File

@ -33,7 +33,6 @@ public class MessageChatCardContent extends MessageContent implements Parcelable
private String extraData; private String extraData;
public static <T> void sendMessage(Conversation.ConversationType type, String targetId, MessageChatCardContent tipsContent, OnSendMessageListener<T> listener) { public static <T> void sendMessage(Conversation.ConversationType type, String targetId, MessageChatCardContent tipsContent, OnSendMessageListener<T> listener) {
ToastUtil.show("发送给:"+targetId);
Message message=Message.obtain(targetId, type,tipsContent); Message message=Message.obtain(targetId, type,tipsContent);
IMCenter.getInstance().sendMessage(message,null,null,new IRongCallback.ISendMessageCallback(){ IMCenter.getInstance().sendMessage(message,null,null,new IRongCallback.ISendMessageCallback(){
@ -44,7 +43,6 @@ public class MessageChatCardContent extends MessageContent implements Parcelable
@Override @Override
public void onSuccess(Message message) { public void onSuccess(Message message) {
ToastUtil.show("发送成功");
if (listener != null) { if (listener != null) {
listener.onSuccess(null, null); listener.onSuccess(null, null);
} }
@ -52,7 +50,6 @@ public class MessageChatCardContent extends MessageContent implements Parcelable
@Override @Override
public void onError(Message message, RongIMClient.ErrorCode e) { public void onError(Message message, RongIMClient.ErrorCode e) {
ToastUtil.show("发送失败:"+e.getMessage());
if (listener != null) { if (listener != null) {
listener.onError(e.code, e.msg); listener.onError(e.code, e.msg);
} }