mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-10-31 01:24:43 +00:00 
			
		
		
		
	Update method
This commit is contained in:
		| @@ -178,13 +178,10 @@ export class UserWebSocketActions { | ||||
| 	 * @param comment Deleted comment | ||||
| 	 */ | ||||
| 	public static async DeletedComment(comment: 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 | ||||
| 			})) | ||||
| 		} | ||||
| 		await UserWebSocketController.SendToSpecifcClients( | ||||
| 			(e) => e.registeredPosts.has(comment.postID), | ||||
| 			async () => WsMessage.NoIDMessage("comment_deleted", comment.id) | ||||
| 		) | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user