Skip to content

[BUG] 无法查看聊天消息 #5

Description

@wbw121124
Image

刷新后自动打开的用户无法通过用户列表点击来查看聊天消息

环境:

  • client: Microsoft Edge 版本 151.0.4129.78 (正式版本) (64 位)
  • server: Windows 10 版本 1803 (OS 内部版本编号 17134.1)

操作:
2. 给一个用户发消息
3. 刷新页面
4. 点击用户列表中的用户

浏览器日志:

main.dart.js:47835 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [info] | 15:05:15 244ms | TouchFish Client started!
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────
main.dart.js:47835 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [debug] | 15:05:15 290ms | Route: null -> /chat/U1
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────
main.dart.js:47835 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [info] | 15:05:15 844ms | ChatDetail: fetched profile uid=1 avatar=http://127.0.0.1:1145/avatar/get_avatar/user/1?v=0
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────
main.dart.js:47835 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [info] | 15:05:16 115ms | ChatDataService.loadContactsAndRooms: calling /chat/list for uid=0
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────
main.dart.js:47835 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [info] | 15:05:16 340ms | ChatWsService connecting to ws://127.0.0.1:1146
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────
main.dart.js:47835 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [info] | 15:05:16 418ms | NotificationService: fetched 0 notifications (lastFetchTime=1786777272.4395726)
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────
main.dart.js:47835 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [info] | 15:05:16 422ms | ChatDataService.loadContactsAndRooms: got 1 items from server
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────
main.dart.js:47835 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [info] | 15:05:16 424ms | ChatDataService.loadContactsAndRooms: loaded 1 rooms, 1 contacts
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────
main.dart.js:47835 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ [info] | 15:05:16 557ms | ChatWsService authenticated over WS
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────

服务器日志:

####### #######    #     # #######   ##  #####                                     ##
   #    #          #     # #        #   #     # ###### #####  #    # ###### #####    #
   #    #          #     # #       #    #       #      #    # #    # #      #    #    #
   #    #####      #     # ######  #     #####  #####  #    # #    # #####  #    #    #
   #    #           #   #        # #          # #      #####  #    # #      #####     #
   #    #            # #   #     #  #   #     # #      #   #   #  #  #      #   #    #
   #    #             #     #####    ##  #####  ###### #    #   ##   ###### #    # ##

�[0m�[1;32m欢迎来到 TouchFish V5 服务器!�[8;30m�[0m
[0] API_PORT: 1145, TCP_PORT : 1146
[1] 创建新的服务器
选择配置:0
服务器在 PORT_API=1145, PORT_TCP=1146 上部署。
�[0m�[1;33m注意:生产环境内不适合显式启动 api 服务器!�[8;30m�[0m
是否直接显式启动 api 服务器?[y/N]:y
�[0m�[1;32m使用内置高性能 waitress 服务器�[8;30m�[0m
启动 TCP 服务器
[INFO] 已严肃启动 TCP 服务器

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions