python-wechaty icon indicating copy to clipboard operation
python-wechaty copied to clipboard

Fix puppet not set issue in RoomInvitation

Open dwro0121 opened this issue 1 year ago • 1 comments

Issue

Whenever operations related to room invitations were performed, an error <puppet not set> occurred. After tracing the root of the problem, it was identified that the load method in the RoomInvitation class was not correctly associating the puppet with the new instance of RoomInvitation.

Further details can be found in the related issue: Issue #354.

Solution

Adjusted the load method in the RoomInvitation class. The method was previously creating a new instance of RoomInvitation without correctly setting up the puppet. By using the cls method for instantiation, we ensure that the puppet is properly associated with the RoomInvitation object.

Changes

  • Refactored the load method in the RoomInvitation class to utilize cls for instantiation, ensuring the puppet is set correctly.

Please review these changes and let me know if further adjustments are required.

Thank you!

dwro0121 avatar Aug 16 '23 10:08 dwro0121

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 16 '23 10:08 CLAassistant