mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-25 23:09:22 +00:00
Update method
This commit is contained in:
parent
29b446f20b
commit
73f97b626f
@ -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)
|
|
||||||
}))
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user