1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-27 22:18:52 +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) {
const msg = await ConversationsHelper.GetSingleMessage(msgID);
for(const client of UserWebSocketController.active_clients.filter(
e => e.registeredConversations.has(msg.convID))) {
UserWebSocketController.SendToClient(client, new WsMessage({
id: "",
title: "updated_conv_message",
data: ConversationsController.ConversationMessageToAPI(msg)
}))
}
await UserWebSocketController.SendToSpecifcClients(
(e) => e.registeredConversations.has(msg.convID),
() => WsMessage.NoIDMessage("updated_conv_message", ConversationsController.ConversationMessageToAPI(msg))
)
}
/**