Use User.group instead of iterating over groups
Thanks @moufmouf for pointing this out.
This commit is contained in:
@@ -860,8 +860,7 @@ export class SocketManager {
|
||||
room.sendToOthersInGroupIncludingUser(user, clientMessage);
|
||||
|
||||
// Update followers
|
||||
const group = room.getGroupIncludingUser(user);
|
||||
group?.getUsers().forEach((user) => {
|
||||
user.group?.getUsers().forEach((user) => {
|
||||
user.following = [];
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user