-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get room owner on event 'room-join','room-topic' #105
Conversation
trying to fix room.owner()
i hate whitespace... |
@zixia can not found those new modules? https://travis-ci.org/wechaty/wechaty/jobs/178773741#L362
|
issues 2: throw new Error('no user') when i trying to use https://app.wechaty.io. reproduce
/home/jas/projects/learning/wechat/wechaty-ts/src/wechaty.ts:127
throw new Error('no user')
^
Error: no user
at Wechaty.user (/home/jas/projects/learning/wechat/wechaty-ts/src/wechaty.ts:127:13)
at WebSocket.ws.on.e (/home/jas/projects/learning/wechat/wechaty-ts/src/io.ts:221:45)
at emitTwo (events.js:106:13)
at WebSocket.emit (events.js:191:7)
at Receiver.ontext (/home/jas/projects/learning/wechat/wechaty-ts/node_modules/ws/lib/WebSocket.js:841:10)
at /home/jas/projects/learning/wechat/wechaty-ts/node_modules/ws/lib/Receiver.js:536:18
at /home/jas/projects/learning/wechat/wechaty-ts/node_modules/ws/lib/Receiver.js:368:7
at /home/jas/projects/learning/wechat/wechaty-ts/node_modules/ws/lib/PerMessageDeflate.js:249:5
at afterWrite (_stream_writable.js:387:3)
at onwrite (_stream_writable.js:378:7) i trace the code . when login in web , it will send a ws event 'update' to robot. and it will call i change it to |
Great hack for the I'll check the new module requirement problem in the package.json, it's my bad. BTW: app.wechaty.io is using a very early stage WebSocket protocol to communicate with Wechaty Runtime(as I named it: a Chatie), so there will be expected others' problem as well, so please be careful when you are using it. |
CI failed becasue I forgot to run |
issue 1:
wxwebApp had hide uin of room members from some routing. so we can't get owner by using uin anymore:
but on 'room-join' and 'room-topic' event ,we got a ``ChatRoomOwner``` property from rawObj, it can be used to load owner..