From 04b05751d9c22b2bbe0eb20d395323dffeda786a Mon Sep 17 00:00:00 2001 From: Jang Rush Date: Sat, 9 May 2020 11:46:07 +0800 Subject: [PATCH] feat: onIMMessageUpdate --- API.md | 1 + leanengine.d.ts | 1 + lib/utils.js | 1 + 3 files changed, 3 insertions(+) diff --git a/API.md b/API.md index b8cf965..083bc42 100644 --- a/API.md +++ b/API.md @@ -182,6 +182,7 @@ LeanEngine 中间件会为这些 Hook 函数检查「Hook 签名」,确保调 * `AV.Cloud.onIMMessageReceived` * `AV.Cloud.onIMReceiversOffline` * `AV.Cloud.onIMMessageSent` +* `AV.Cloud.onIMMessageUpdate` * `AV.Cloud.onIMConversationStart` * `AV.Cloud.onIMConversationStarted` * `AV.Cloud.onIMConversationAdd` diff --git a/leanengine.d.ts b/leanengine.d.ts index 4b699d8..124bd1e 100644 --- a/leanengine.d.ts +++ b/leanengine.d.ts @@ -152,6 +152,7 @@ export namespace Cloud { export function onIMMessageReceived(handler: CloudFunction): void; export function onIMReceiversOffline(handler: CloudFunction): void; export function onIMMessageSent(handler: CloudFunction): void; + export function onIMMessageUpdate(handler: CloudFunction): void; export function onIMConversationStart(handler: CloudFunction): void; export function onIMConversationStarted(handler: CloudFunction): void; export function onIMConversationAdd(handler: CloudFunction): void; diff --git a/lib/utils.js b/lib/utils.js index aae7c9c..6f3784c 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -17,6 +17,7 @@ exports.realtimeHookMapping = { onIMMessageReceived: '_messageReceived', onIMReceiversOffline: '_receiversOffline', onIMMessageSent: '_messageSent', + onIMMessageUpdate: '_messageUpdate', onIMConversationStart: '_conversationStart', onIMConversationStarted: '_conversationStarted', onIMConversationAdd: '_conversationAdd',