commit 82ed989407b812811980c917617a51a9e56fa639
parent 9734f2b8bb82c75416e36b7ca5b096a20ad14e62
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 23 May 2023 17:13:58 -0700
update read record
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -4940,6 +4940,9 @@ Loop:
authUser = &authUserTmp
managers.ActiveUsers.UpdateUserInRoom(room, managers.NewUserInfo(*authUser, nil))
+ // Update read record
+ db.UpdateChatReadRecord(authUser.ID, room.ID)
+
_, msgTyp, err := sub.ReceiveTimeout(5 * time.Second)
if err != nil {
continue