tinode / webapp

Tinode web chat using React
Apache License 2.0
323 stars 197 forks source link

USER_NEW is not defined #98

Closed young310 closed 2 years ago

young310 commented 2 years ago

Describe the bug When I register the user, the system prompt USER_NEW is not defined

To Reproduce Steps to reproduce the behavior:

  1. Create new user
  2. Input everything and click register
  3. See error

Expected behavior Create an user account

Screenshots

Screen Shot 2022-05-31 at 17 16 35

Environment (please complete the following information):

Console log I2022/05/31 09:10:24 in: '{"hi":{"id":"83695","ver":"0.19.0-rc1","ua":"OnCallWeb/0.20.0-beta1 (Chrome/102.0; MacIntel); tinodejs/0.19.0-rc1","lang":"zh-TW","platf":"web"}}' sid='ZSRdWr-unBw' uid='' I2022/05/31 09:11:11 ws: session started BdaqRi5CiZA 1.200.25.106:54490 1 I2022/05/31 09:10:24 in: '{"hi":{"id":"83695","ver":"0.19.0-rc1","ua":"OnCallWeb/0.20.0-beta1 (Chrome/102.0; MacIntel); tinodejs/0.19.0-rc1","lang":"zh-TW","platf":"web"}}' sid='ZSRdWr-unBw' uid='' I2022/05/31 09:11:11 ws: session started BdaqRi5CiZA 1.200.25.106:54490 1

Additional context Server log I2022/05/31 09:10:24 in: '{"hi":{"id":"83695","ver":"0.19.0-rc1","ua":"OnCallWeb/0.20.0-beta1 (Chrome/102.0; MacIntel); tinodejs/0.19.0-rc1","lang":"zh-TW","platf":"web"}}' sid='ZSRdWr-unBw' uid='' I2022/05/31 09:11:11 ws: session started BdaqRi5CiZA 1.200.25.106:54490 1

or-else commented 2 years ago

Thanks, fixed in https://github.com/tinode/tinode-js/commit/bc45065deef2319e4012f45075466563d45c0af7