mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-24 02:13:28 +00:00
Create an event for updated conversation messages
This commit is contained in:
@ -137,6 +137,15 @@ export class UserWebSocketActions {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Propagate the update of a conversation message
|
||||
*
|
||||
* @param msgID Message ID
|
||||
*/
|
||||
public static async UpdatedConversationMessage(msgID: number) {
|
||||
console.info("Update conversation message " + msgID);
|
||||
}
|
||||
|
||||
/**
|
||||
* Propagate the creation of a new comment
|
||||
*
|
||||
@ -195,8 +204,9 @@ EventsHelper.Listen("updated_number_notifications", async (e) => await UserWebSo
|
||||
// When we get a new number of unread conversations
|
||||
EventsHelper.Listen("updated_number_unread_conversations", async (e) => await UserWebSocketActions.SendNewUnreadConversationsCount(e.usersID));
|
||||
|
||||
// When a new message is sent
|
||||
// When a new message is sent / updated
|
||||
EventsHelper.Listen("sent_conversation_message", async (e) => await UserWebSocketActions.SentNewConversationMessage(e.msg));
|
||||
EventsHelper.Listen("conv_message_updated", async (e) => await UserWebSocketActions.UpdatedConversationMessage(e.msgId));
|
||||
|
||||
// When a comment is created / updated / deleted
|
||||
EventsHelper.Listen("comment_created", async (e) => await UserWebSocketActions.CreatedNewComment(e.comment))
|
||||
|
Reference in New Issue
Block a user