Skip to content

Commit

Permalink
Merge pull request #71 from juzibot/feat/room-add-with-msgs
Browse files Browse the repository at this point in the history
feat: ✨ add quote ids when room add
  • Loading branch information
su-chang authored Jan 2, 2025
2 parents 6f2d8f2 + c886cb6 commit 14f84ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@juzi/wechaty-puppet",
"version": "1.0.99",
"version": "1.0.100",
"description": "Abstract Puppet for Wechaty",
"type": "module",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/room-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const roomMixin = <MixinBase extends typeof PuppetSkeleton & ContactMixin & Room
* Room
*
*/
abstract roomAdd (roomId: string, contactId: string, inviteOnly?: boolean) : Promise<void>
abstract roomAdd (roomId: string, contactId: string, inviteOnly?: boolean, quoteIds?: string[]) : Promise<void>
abstract roomAvatar (roomId: string) : Promise<FileBoxInterface>
abstract roomCreate (contactIdList: string[], topic?: string) : Promise<string>
abstract roomDel (roomId: string, contactId: string | string[]) : Promise<void>
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/puppet-test/puppet-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class PuppetTest extends PUPPET.Puppet {
override async roomAnnounce (roomId: string, text: string) : Promise<void>
override async roomAnnounce (roomId: string, text?: string) : Promise<void | string> { return { roomId, text } as any }

override async roomAdd (roomId: string, contactId: string, inviteOnly?: boolean) : Promise<void> { return { contactId, inviteOnly, roomId } as any }
override async roomAdd (roomId: string, contactId: string, inviteOnly?: boolean, quoteIds?: string[]) : Promise<void> { return { contactId, inviteOnly, quoteIds, roomId } as any }
override async roomAvatar (roomId: string) : Promise<FileBoxInterface> { return { roomId } as any }
override async roomCreate (contactIdList: string[], topic?: string) : Promise<string> { return { contactIdList, topic } as any }
override async roomDel (roomId: string, contactId: string) : Promise<void> { return { contactId, roomId } as any }
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/smoke-testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class PuppetTest extends PUPPET.Puppet {
override async roomAnnounce (roomId: string, text: string) : Promise<void>
override async roomAnnounce (roomId: string, text?: string) : Promise<void | string> { return { roomId, text } as any }

override async roomAdd (roomId: string, contactId: string) : Promise<void> { return { contactId, roomId } as any }
override async roomAdd (roomId: string, contactId: string, inviteOnly?: boolean, quoteIds?: string[]) : Promise<void> { return { contactId, inviteOnly, quoteIds, roomId } as any }
override async roomAvatar (roomId: string) : Promise<FileBoxInterface> { return { roomId } as any }
override async roomCreate (contactIdList: string[], topic?: string) : Promise<string> { return { contactIdList, topic } as any }
override async roomDel (roomId: string, contactId: string) : Promise<void> { return { contactId, roomId } as any }
Expand Down

0 comments on commit 14f84ee

Please sign in to comment.