wechaty / puppet-padlocal

Puppet PadLocal is a Pad Protocol for WeChat
https://wechaty.js.org/docs/puppet-providers/padlocal
Apache License 2.0
642 stars 88 forks source link

bot非群主情况下,群成员被移出群聊或退群,没有对应的事件,但是有群成员变动的通知。 #23

Open su-chang opened 3 years ago

su-chang commented 3 years ago

能否通过群成员变动的通知来主动构造一个离群事件,这样便于客户端及时同步群成员的信息。

padlocal commented 3 years ago
export interface EventRoomLeavePayload {
  removeeIdList : string[],
  removerId     : string,
  roomId        : string,
  timestamp     : number,

removerId 是必须的,但是这种情况好像拿不到。如果传入的是 “”, https://github.com/wechaty/wechaty/blob/8a41a64c443623dc188d2be06b474706e33bb4ca/src/wechaty.ts#L539 又会报错。

有什么建议吗?

su-chang commented 3 years ago

如果 removerId获取不到,可以填写和 removeeId 一样的值。

padlocal commented 3 years ago

fixed in wechaty-puppet-padlocal@0.2.16

su-chang commented 3 years ago

企业微信群中的群成员退出,群成员信息加载有问题,没有显示对应的成员名称。

具体显示如下:

room : Room<哈哈喝喝>, contact: Contact<25984982132676060@openim>, remover: Contact<25984982132676060@openim>