TIMConvSubscribeUnreadMessageCountByFilter

Introduction

Subscribe unread message count by filter

After you call this interface, when the unread count under the filter changes, the SDK will send you the callback registered with TIMSetConvUnreadMessageCountChangedByFilterCallback.

Do not fill in next_seq and count in TIMConversationListFilter

Parameter details

Parameter name Parameter type Required Description
TIMConversationListFilter TIMConversationListFilter yes Subscribe unread message count by filter param

Returned template

Promise<number>

data:number // 'Request result: [Error codes](https://www.tencentcloud.com/document/product/1047/34348). 0 means success.'

Return value details

name type description
data number Request result: Error codes. 0 means success.

Code example

import TimRender from "im_electron_sdk/dist/renderer";
const timRenderInstance = new TimRender();

let param:TIMConversationListFilter = {
    params: {
        conversation_list_filter_conv_type: 1,
        conversation_list_filter_mark_type: 0x1,
        conversation_list_filter_conversation_group: ""
    }
}
timRenderInstance.TIMConvSubscribeUnreadMessageCountByFilter(param)

results matching ""

    No results matching ""