1
0
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:
2020-04-02 18:38:29 +02:00
parent a083de5947
commit f8e8bc8322
3 changed files with 21 additions and 1 deletions

View File

@ -522,6 +522,10 @@ export class ConversationsHelper {
message: newContent
}
});
await EventsHelper.Emit("conv_message_updated", {
msgId: messageID
});
}
/**

View File

@ -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,