Skip to content

Commit 5777d31

Browse files
authored
🔀 Merge pull request #151 from weakish/on-msg-update
feat: onIMMessageUpdate
2 parents 145ee31 + 04b0575 commit 5777d31

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

API.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ LeanEngine 中间件会为这些 Hook 函数检查「Hook 签名」,确保调
182182
* `AV.Cloud.onIMMessageReceived`
183183
* `AV.Cloud.onIMReceiversOffline`
184184
* `AV.Cloud.onIMMessageSent`
185+
* `AV.Cloud.onIMMessageUpdate`
185186
* `AV.Cloud.onIMConversationStart`
186187
* `AV.Cloud.onIMConversationStarted`
187188
* `AV.Cloud.onIMConversationAdd`

leanengine.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export namespace Cloud {
152152
export function onIMMessageReceived(handler: CloudFunction): void;
153153
export function onIMReceiversOffline(handler: CloudFunction): void;
154154
export function onIMMessageSent(handler: CloudFunction): void;
155+
export function onIMMessageUpdate(handler: CloudFunction): void;
155156
export function onIMConversationStart(handler: CloudFunction): void;
156157
export function onIMConversationStarted(handler: CloudFunction): void;
157158
export function onIMConversationAdd(handler: CloudFunction): void;

lib/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ exports.realtimeHookMapping = {
2020
onIMMessageReceived: '_messageReceived',
2121
onIMReceiversOffline: '_receiversOffline',
2222
onIMMessageSent: '_messageSent',
23+
onIMMessageUpdate: '_messageUpdate',
2324
onIMConversationStart: '_conversationStart',
2425
onIMConversationStarted: '_conversationStarted',
2526
onIMConversationAdd: '_conversationAdd',

0 commit comments

Comments
 (0)