mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-24 22:39:21 +00:00
Update method
This commit is contained in:
parent
cda807ae65
commit
5503d1af0b
@ -178,13 +178,10 @@ export class UserWebSocketActions {
|
|||||||
* @param comment Deleted comment
|
* @param comment Deleted comment
|
||||||
*/
|
*/
|
||||||
public static async DeletedComment(comment: Comment) {
|
public static async DeletedComment(comment: Comment) {
|
||||||
for(const client of UserWebSocketController.active_clients.filter((e) => e.registeredPosts.has(comment.postID))) {
|
await UserWebSocketController.SendToSpecifcClients(
|
||||||
UserWebSocketController.SendToClient(client, new WsMessage({
|
(e) => e.registeredPosts.has(comment.postID),
|
||||||
id: "",
|
async () => WsMessage.NoIDMessage("comment_deleted", comment.id)
|
||||||
title: "comment_deleted",
|
)
|
||||||
data: comment.id
|
|
||||||
}))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user