mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19: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) {
|
||||
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))
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user