1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00

Update method

This commit is contained in:
Pierre HUBERT 2020-04-02 18:58:25 +02:00
parent 29b446f20b
commit 73f97b626f

View File

@ -138,16 +138,10 @@ export class UserWebSocketActions {
public static async UpdatedConversationMessage(msgID: number) { public static async UpdatedConversationMessage(msgID: number) {
const msg = await ConversationsHelper.GetSingleMessage(msgID); const msg = await ConversationsHelper.GetSingleMessage(msgID);
for(const client of UserWebSocketController.active_clients.filter( await UserWebSocketController.SendToSpecifcClients(
e => e.registeredConversations.has(msg.convID))) { (e) => e.registeredConversations.has(msg.convID),
() => WsMessage.NoIDMessage("updated_conv_message", ConversationsController.ConversationMessageToAPI(msg))
UserWebSocketController.SendToClient(client, new WsMessage({ )
id: "",
title: "updated_conv_message",
data: ConversationsController.ConversationMessageToAPI(msg)
}))
}
} }
/** /**