Skip to content
Snippets Groups Projects
Unverified Commit db649ac0 authored by Ricardo Garim's avatar Ricardo Garim Committed by GitHub
Browse files

chore: notify users when a room is added to a team (#34011)

parent 7c0cda91
No related branches found
No related tags found
No related merge requests found
......@@ -366,6 +366,7 @@ export class TeamService extends ServiceClassInternal implements ITeamService {
}
await Rooms.setTeamByIds(rids, teamId);
void notifyOnRoomChangedById(rids, 'updated');
return validRooms;
}
......@@ -408,6 +409,7 @@ export class TeamService extends ServiceClassInternal implements ITeamService {
delete room.teamId;
delete room.teamDefault;
await Rooms.unsetTeamById(room._id);
void notifyOnRoomChangedById(room._id, 'updated');
if (room.t === 'c') {
await Message.saveSystemMessage('user-removed-room-from-team', team.roomId, room.name || '', user);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment