Skip to content

Commit

Permalink
🔀 Merge pull request #151 from weakish/on-msg-update
Browse files Browse the repository at this point in the history
feat: onIMMessageUpdate
  • Loading branch information
jysperm committed Jun 18, 2020
2 parents 145ee31 + 04b0575 commit 5777d31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions API.md
Expand Up @@ -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`
Expand Down
1 change: 1 addition & 0 deletions leanengine.d.ts
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions lib/utils.js
Expand Up @@ -20,6 +20,7 @@ exports.realtimeHookMapping = {
onIMMessageReceived: '_messageReceived',
onIMReceiversOffline: '_receiversOffline',
onIMMessageSent: '_messageSent',
onIMMessageUpdate: '_messageUpdate',
onIMConversationStart: '_conversationStart',
onIMConversationStarted: '_conversationStarted',
onIMConversationAdd: '_conversationAdd',
Expand Down

0 comments on commit 5777d31

Please sign in to comment.