mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-19 16:15:16 +00:00
Create an event for updated conversation messages
This commit is contained in:
@ -522,6 +522,10 @@ export class ConversationsHelper {
|
||||
message: newContent
|
||||
}
|
||||
});
|
||||
|
||||
await EventsHelper.Emit("conv_message_updated", {
|
||||
msgId: messageID
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -29,6 +29,11 @@ export interface SentNewConversationMessageEvent {
|
||||
msg: ConversationMessage
|
||||
}
|
||||
|
||||
// When a conversation message is updated
|
||||
export interface UpdatedConversationMessageEvent {
|
||||
msgId: number
|
||||
}
|
||||
|
||||
// When a comment is created
|
||||
export interface CommentCreatedEvent {
|
||||
comment: Comment
|
||||
@ -52,6 +57,7 @@ export interface EventsMap {
|
||||
"updated_number_notifications": UpdatedNotificationsNumberEvent,
|
||||
"updated_number_unread_conversations": UpdateNumberUnreadConversationsEvent,
|
||||
"sent_conversation_message": SentNewConversationMessageEvent,
|
||||
"conv_message_updated": UpdatedConversationMessageEvent,
|
||||
"comment_created": CommentCreatedEvent,
|
||||
"comment_updated": CommentUpdatedEvent,
|
||||
"comment_deleted": CommentDeletedEvent,
|
||||
|
Reference in New Issue
Block a user