wechaty / grpc

gRPC Service & Protocol Buffers for Wechaty Puppet
https://wechaty.github.io/grpc/
Apache License 2.0
25 stars 22 forks source link

当消息来自个人,roomid不要返回空字符 #66

Open jcai opened 4 years ago

jcai commented 4 years ago

https://github.com/Chatie/grpc/blob/4c32075f391c29407a9ace0fb6c8765097277bb1/proto/wechaty/puppet/message.proto#L45

如果消息来自个人,roomid不要返回空字符串

huan commented 4 years ago

Yes, if the message is not coming from the room, the room id will be meaningless.

Please read the TypeScript code to learn more about how to deal with this situation.

Basically, I believe we should use the from id instead of the room id for this case.