Giter VIP home page Giter VIP logo

Comments (5)

No8blackball avatar No8blackball commented on June 2, 2024

更新到最新代码试下

from tangsengdaodaoandroid.

licat233 avatar licat233 commented on June 2, 2024

更新到最新代码试下

已更新,bug依旧,log打印:

{"msg":"上传文件失败!","status":400}

但view视图并没有做出失败的响应,img消息体依旧显示发送中状态,只有退出了当前聊天窗口,回到聊天列表,img消息体才会更新为发送失败状态。

from tangsengdaodaoandroid.

licat233 avatar licat233 commented on June 2, 2024

看了源代码,主要逻辑代码在chat/base/msgitem/WKChatBaseProvider.kt内setMsgTimeAndStatus函数:
当发送消息失败时,该方法接收到的mMsg.status状态始终为0,即WKSendMsgResult.send_loading状态,才会出现图片发送失败了,一直在转圈圈,不会提示失败。
当我在592行加入以下代码后,能正常显示发送失败状态

if (mMsg.status == WKSendMsgResult.send_loading && mMsg.remoteExtra.needUpload != 1) mMsg.status = WKSendMsgResult.send_fail

就是不知道该解决方法是否可靠,是否有副作用,请作者帮忙看一下

from tangsengdaodaoandroid.

No8blackball avatar No8blackball commented on June 2, 2024

把sdk更新到1.0.8再试下

from tangsengdaodaoandroid.

licat233 avatar licat233 commented on June 2, 2024

把sdk更新到1.0.8再试下

可以了,原来是sdk的bug啊

from tangsengdaodaoandroid.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.