diff --git a/package.json b/package.json index 2f5f4fac..ddda2fbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@juzi/wechaty-puppet-service", - "version": "1.0.104", + "version": "1.0.105", "description": "Puppet Service for Wechaty", "type": "module", "exports": { @@ -73,7 +73,7 @@ "@juzi/wechaty-puppet": "^1.0.84" }, "dependencies": { - "@juzi/wechaty-grpc": "^1.0.89", + "@juzi/wechaty-grpc": "^1.0.90", "clone-class": "^1.1.1", "ducks": "^1.0.2", "file-box": "^1.5.5", diff --git a/src/client/puppet-service.ts b/src/client/puppet-service.ts index 5e602862..6ed2df8b 100644 --- a/src/client/puppet-service.ts +++ b/src/client/puppet-service.ts @@ -1734,6 +1734,7 @@ class PuppetService extends PUPPET.Puppet { roomId : string, contactId : string, inviteOnly : boolean, + quoteIds : string[], ): Promise { log.verbose('PuppetService', 'roomAdd(%s, %s)', roomId, contactId) @@ -1741,7 +1742,7 @@ class PuppetService extends PUPPET.Puppet { request.setId(roomId) request.setContactId(contactId) request.setInviteOnly(inviteOnly) - + request.setQuoteIdsList(quoteIds) await util.promisify( this.grpcManager.client.roomAdd .bind(this.grpcManager.client), diff --git a/src/server/puppet-implementation.ts b/src/server/puppet-implementation.ts index 75417c27..544186e3 100644 --- a/src/server/puppet-implementation.ts +++ b/src/server/puppet-implementation.ts @@ -1390,8 +1390,9 @@ function puppetImplementation ( const roomId = call.request.getId() const contactId = call.request.getContactId() const inviteOnly = call.request.getInviteOnly() + const quoteIds = call.request.getQuoteIdsList() - await puppet.roomAdd(roomId, contactId, inviteOnly) + await puppet.roomAdd(roomId, contactId, inviteOnly, quoteIds) return callback(null, new grpcPuppet.RoomAddResponse())