dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 70563074dd8054581e1c888de8fcb206cb4c9f5f
parent 727a062321c661e54d50a112c6a10195aabaf9e0
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 19 Dec 2022 00:07:56 -0800

add some doc

Diffstat:
Mpkg/managers/managers.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/pkg/managers/managers.go b/pkg/managers/managers.go @@ -122,6 +122,9 @@ func (m *ActiveUsersManager) UpdateUserInRoom(room database.ChatRoom, userInfo U m.Unlock() } +// UpdateUserHBInRooms Update the IsHellbanned property for a user. +// This is needed to ensure the user become invisible at the same time as his messages disappears. +// Otherwise, it is possible that the message becomes HB and the user still show up in the users list. func (m *ActiveUsersManager) UpdateUserHBInRooms(newUserInfo UserInfo) { m.Lock() for roomKey, usersMap := range m.activeUsers {