teamgram / teamgram-server

Unofficial open source mtproto server written in golang with compatible telegram client.
https://teamgram.net
Apache License 2.0
1.84k stars 369 forks source link

未读数量好像没有作用 #69

Closed DongWenHu closed 2 years ago

DongWenHu commented 2 years ago

数据库unread_count这个字段好像没有哪里写入数量,是不是还没有实现

wubenqi commented 2 years ago

哪张表?

DongWenHu commented 2 years ago

chat_participants

wubenqi commented 2 years ago

这个字段已经废弃了,稍后我删掉吧

DongWenHu commented 2 years ago

哦,那这个未读数量是怎么计算的

wubenqi commented 2 years ago

看 dialogs 表

DongWenHu commented 2 years ago

好像也没有实现, 引用地方 https://github.com/teamgram/teamgram-server/blob/master/app/service/biz/dialog/internal/core/dialog.updateReadInbox_handler.go#L28

https://github.com/teamgram/teamgram-server/blob/master/app/service/biz/dialog/internal/core/dialog.updateReadOutbox_handler.go#L28

没有传入unread_count

wubenqi commented 2 years ago

看收件箱处理逻辑

DongWenHu commented 2 years ago

看到了,感谢!

DongWenHu commented 2 years ago

不过删除未读消息的时候,未读数量未作修改

wubenqi commented 2 years ago

有可能