发送消息,应答错误码 errorCode = 2

dong 2020-9-24 652

ChatManager.Instance().sendMessage(msg, new SendMessageCallback() { @Override public void onSuccess(long messageUid, long timestamp) { msg.direction = MessageDirection.Send; msg.serverTime = timestamp; msg.messageUid = messageUid; UiMessage uiMessage = new UiMessage(msg); mMsgList.add(uiMessage); mAdapter.notifyDataSetChanged(); }

            @Override
            public void onFail(int errorCode) {

                showToast("发送失败!");
            }

            @Override
            public void onPrepare(long messageId, long savedTime) {
                msg.messageId = messageId;
                msg.serverTime = savedTime;
            }
        });
最新回复 (1)
  • HeavyRain 2020-9-24
    引用 2
    消息不能发送撤回类消息或者群操作通知
返回