Git Product home page Git Product logo

Comments (4)

huan avatar huan commented on September 23, 2024 1

The message.forward() is using the puppet.messageForward() to forward a message by massageId, which is implemented by the Puppet:

https://github.com/wechaty/wechaty/blob/f3a18c04e4414df28a1928c04c462dae14d40e83/src/user/message.ts#L903-L918

And in our Puppet, the messageForward() will call this.messageFile(messageId), which is an abstract method implemented in our PuppetDonut.

https://github.com/wechaty/wechaty-puppet/blob/41628eb83ed07d1692362c568158df9061f35c0a/src/puppet.ts#L1040-L1057

So we need to look at the messageFile() in PuppetDonut and make sure it will return the HD image to fix this issue.

from donut-tester.

su-chang avatar su-chang commented on September 23, 2024 1

Related commit: https://github.com/juzibot/wechaty-puppet-donut/commit/2b1baa11846e3b1b47f363222bd2f77008e099fe

After upgrade donut for Friday Bot and Oss Chat, let's keep watching on this issue for one week.

from donut-tester.

su-chang avatar su-chang commented on September 23, 2024

I think we should use Image class to get artwork firstly, and then forward this one.

Class Image will work for these two methods:

  • forward()
  • toFileBox()

Now it seem that it could work for toFileBox() only?

from donut-tester.

huan avatar huan commented on September 23, 2024

It's great to know that you have fixed this problem!

The best practice of fixing bugs is to link to the related issue with the source code commit message because it will help other developers getting to know which bug has been fixed. Please always refer to the issue number in the commit message (if there's any), thanks!

from donut-tester.

Related Issues (20)

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.