mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-11-04 03:24:04 +00:00 
			
		
		
		
	Send delete comment notification to client
This commit is contained in:
		@@ -178,7 +178,13 @@ export class UserWebSocketActions {
 | 
			
		||||
	 * @param comment Deleted comment
 | 
			
		||||
	 */
 | 
			
		||||
	public static async DeletedComment(comment: Comment) {
 | 
			
		||||
		console.log(comment);
 | 
			
		||||
		for(const client of UserWebSocketController.active_clients.filter((e) => e.registeredPosts.has(comment.postID))) {
 | 
			
		||||
			UserWebSocketController.SendToClient(client, new WsMessage({
 | 
			
		||||
				id: "",
 | 
			
		||||
				title: "comment_deleted",
 | 
			
		||||
				data: comment.id
 | 
			
		||||
			}))
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user