Skip to content

Commit

Permalink
v8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
haokui01 committed Dec 30, 2020
1 parent e8a9268 commit 13d826b
Show file tree
Hide file tree
Showing 52 changed files with 519 additions and 37 deletions.
Binary file modified bin/nim.dll
Binary file not shown.
Binary file modified bin/nim_audio.dll
Binary file not shown.
Binary file modified bin/nim_audio_hook.dll
Binary file not shown.
Binary file modified bin/nim_chatroom.dll
Binary file not shown.
Binary file modified bin/nim_tools_http.dll
Binary file not shown.
Binary file modified bin/nrtc.dll
Binary file not shown.
Binary file modified bin/nrtc_audio_process.dll
Binary file not shown.
1 change: 1 addition & 0 deletions bin/resources/themes/default/session/session_box.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
hotimage="../session/icon_hover.png" pushedimage="../session/icon_pushed.png" selectednormalimage="../session/icon_pushed.png" textid="STRID_SESSION_RECORD_AUDIO_ICON" font="8" normaltextcolor="icongray" disabledtextcolor="iconfadegray"/>
<Control />
<!--Button name="add_msglog" dataid="10" valign="center" cursortype="hand" margin="5,0,10,0" normaltextcolor="link_blue" textid="STRID_SESSION_ADD_MSGLOG"/-->
<CheckBox class="checkbox_font12" name="btn_team_ack_ui" textid="STRID_SESSION_TEAM_ACK_MSG" margin="0,8,0,0" normaltextcolor="dark2color" visible="false"/>
<Button name="btn_team_ack_msg" valign="center" cursortype="hand" normaltextcolor="link_blue" disabledtextcolor="gray" textid="STRID_SESSION_TEAM_ACK_MSG" visible="false" tooltiptextid="STRID_SESSION_TEAM_ACK_MSG_TIP"/>
<Control width="10" />
<Button name="btn_custom_msg" valign="center" cursortype="hand" normaltextcolor="link_blue" disabledtextcolor="gray" textid="STRID_SESSION_CUSTOM_NOTIFICATION"/>
Expand Down
Binary file modified bin/x64_dlls/nim.dll
Binary file not shown.
Binary file modified bin/x64_dlls/nim_audio.dll
Binary file not shown.
Binary file modified bin/x64_dlls/nim_chatroom.dll
Binary file not shown.
Binary file modified bin/x64_dlls/nim_tools_http.dll
Binary file not shown.
Binary file modified bin/x64_dlls/nrtc.dll
Binary file not shown.
Binary file modified bin/x64_dlls/nrtc_audio_process.dll
Binary file not shown.
Binary file modified bin/x86_dlls/nim.dll
Binary file not shown.
Binary file modified bin/x86_dlls/nim_audio.dll
Binary file not shown.
Binary file modified bin/x86_dlls/nim_audio_hook.dll
Binary file not shown.
Binary file modified bin/x86_dlls/nim_chatroom.dll
Binary file not shown.
Binary file modified bin/x86_dlls/nim_tools_http.dll
Binary file not shown.
Binary file modified bin/x86_dlls/nrtc.dll
Binary file not shown.
Binary file modified bin/x86_dlls/nrtc_audio_process.dll
Binary file not shown.
8 changes: 8 additions & 0 deletions nim_sdk/public_define/defines/nim_define/nim_msglog_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,14 @@ static const char *kNIMDELMSGSelfNotifyKeyMsgClientID = "client_id"; /**< stri
static const char *kNIMDELMSGSelfNotifyKeyEXT = "ext"; /**< string 用户自定义数据 */
/** @}*/ //单向删除某条消息服务端推送 Json Keys

/** @name 群组消息标记已读回调 json key
* @{
*/
static const char* kNIMTEAMMSGACKREADSUCCESSIDSKEY = "success_ids"; /**< string json array 群组消息标记已读成功的msg id list key */
static const char* kNIMTEAMMSGACKREADFAILUREIDSKEY = "failure_ids"; /**< string json array 群组消息标记已读失败的msg id list key */
static const char* kNIMTEAMMSGACKREADSIGNOREDIDSKEY = "ignored_ids"; /**< string json array 群组消息标记已读忽略的msg id list key(消息不需要标记,或者已经标记过) */
/** @}*/ //单向删除某条消息参数 Json Keys

/** @brief 单向删除某条消息参数 */
typedef struct
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ enum NIMResCode
kNIMResTeamInviteSuccess = 810, /**< 邀请成功 */
kNIMResForcePushCountLimit = 811, /**< 强推列表账号数量超限 */
kNIMResTeamMemberLimit = 813, /**< 操作成功,但部分成员的群数量超限 */
kNIMResTeamGetInfoListPartSuccess = 816, /**< 批量查询群信息部分成功 */
//数据解编错误代码
kNIMResInvalidProtocol = 997, /**< 协议已失效 */
kNIMResEUnpacket = 998, /**< 解包错误 */
Expand Down
18 changes: 18 additions & 0 deletions nim_sdk/public_define/defines/nim_define/nim_session_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ typedef struct
*/
typedef void (*nim_session_change_cb_func)(int rescode, const char *result, int total_unread_counts, const char *json_extension, const void *user_data);

/** @typedef void (*nim_session_multi_change_cb_func)(int rescode, const char *result, int total_unread_counts, const void *user_data);
* 最近会话项(多项)更新通知的回调函数定义
* @param[out] rescode 操作结果,成功200
* @param[out] result 最近会话Json array string (『会话列表的Json Keys』 as follows 不包含消息的字段)
* @param[out] total_unread_counts 总的未读数目
* @param[out] user_data APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
* @return void 无返回值
*/
typedef void (*nim_session_multi_change_cb_func)(int rescode, const char *result, int total_unread_counts, const void *user_data);

/** @typedef void (*nim_session_delete_session_roaming_cb_func)(int rescode, const char *to_type, const char *id, const void *user_data)
* 最近会话项更新通知的回调函数定义
* @param[out] rescode 操作结果,成功200
Expand Down Expand Up @@ -210,6 +220,14 @@ static const char* kNIMSessionStickTopInfoUpdateTime = "update_time"; /**< uin
static const char* kNIMSessionStickTopSessionData = "session_data"; /**< json object 会话信息 */
/** @}*/ //置顶会话Json Keys

/** @name 会话未读数清零Json Keys(v8.2.0添加)
* @{
*/
static const char* kNIMSessionUnReadCountSessionType = "type"; /**< enum NIMSessionType, 会话类型 */
static const char* kNIMSessionUnReadCountSessionId = "id"; /**< string, 会话id */

/** @}*/ //会话未读数清零Json Keys

/** @typedef void(*nim_session_query_session_hasmore_roammsg_cb_func)(int rescode, const SessionRoamMsgHasMoreTagInfo *tag_info, const void *user_data)
* 查询会话漫游消息未完待拉信息结果回调
* @param[out] rescode 操作结果,成功200
Expand Down
17 changes: 13 additions & 4 deletions nim_sdk/public_define/defines/nim_define/nim_super_team_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,16 @@ static const char *kNIMSuperTeamInfoKeyBeInviteMode = "be_invite_mode"; /**< int
static const char *kNIMSuperTeamInfoKeyInviteMode = "invite_mode"; /**< int, 谁可以邀请他人入群,属性本身只有群主管理员可以修改,默认kNIMTeamInviteModeManager(0)/kNIMTeamInviteModeEveryone(1) */
static const char *kNIMSuperTeamInfoKeyUpdateInfoMode= "update_info_mode";/**< int, 谁可以修改群资料,属性本身只有群主管理员可以修改,默认kNIMTeamUpdateInfoModeManager(0)/kNIMTeamUpdateInfoModeEveryone(1) */
static const char *kNIMSuperTeamInfoKeyUpdateCustomMode = "update_custom_mode";/**< int, 谁可以更新群自定义属性,属性本身只有群主管理员可以修改,默认kNIMTeamUpdateCustomModeManager(0)/kNIMTeamUpdateCustomModeEveryone(1) */
/** @}*/ //群组信息Json Keys
static const char* kNIMSuperTeamInfoKeyMuteAll = "mute_all"; /**< int, 群全员禁言标记 0:未禁言,1:禁言, 开发者只读 无法设置 */
static const char* kNIMSuperTeamInfoKeyMuteType = "mute_type"; /**<NIMSuperTeamMuteType, 群禁言0不禁言 1普通成员禁言 3全部禁言 包括群主 开发者可以通过设置该属性调整群禁言状态*/
/** @}*/ //群组信息Json Keys
/** @enum NIMSuperTeamMuteType 群信息kNIMSuperTeamInfoKeyMuteType的配置定义 */
enum NIMSuperTeamMuteType
{
kNIMSuperTeamMuteTypeNone = 0, /**< 不禁言 */
kNIMSuperTeamMuteTypeNomalMute = 1, /**< 普通成员禁言 */
kNIMSuperTeamMuteTypeAllMute = 3, /**< 全部禁言 */
};

/** @enum NIMSuperTeamBitsConfigMask 群组成员信息Bits属性kNIMSuperTeamUserKeyBits的配置定义 */
enum NIMSuperTeamBitsConfigMask
Expand Down Expand Up @@ -216,9 +225,9 @@ enum NIMSuperTeamJoinMode
/** @enum NIMSuperTeamQueryType 根据关键字查询群组信息类型 */
enum NIMSuperTeamQueryType
{
kNIMQuerySuperTeamDefault = 1, /** 默认查询条件,群组 ID 和群名称任意匹配则返回 */
kNIMQuerySuperTeamByTeamId = 2, /** 仅匹配群组 ID */
kNIMQuerySuperTeamByTeamName = 3 /** 仅匹配群名称 */
kNIMQuerySuperTeamDefault = 1, /**< 默认查询条件,群组 ID 和群名称任意匹配则返回 */
kNIMQuerySuperTeamByTeamId = 2, /**< 仅匹配群组 ID */
kNIMQuerySuperTeamByTeamName = 3 /**< 仅匹配群名称 */
};

/** @name 搜索本地群组相关信息扩展参数
Expand Down
1 change: 1 addition & 0 deletions nim_sdk/public_define/defines/nim_define/nim_sysmsg_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ static const char *kNIMSysMsgKeyPushNeedPrefix = "push_prefix"; /**< int, (可
static const char *kNIMSysMsgKeyAntiSpamEnable = "anti_spam_enable"; /**< int, (功能暂时不开放)是否需要过易盾反垃圾, 0:不需要,1:需要, 默认0 */
static const char *kNIMSysMsgKeyAntiSpamContent = "anti_spam_content"; /**< string, (功能暂时不开放)(可选)开发者自定义的反垃圾字段 */
static const char *kNIMSysMsgKeyEnvConfig = "env_config"; /**< string, (可选) 指向自定义抄送的配置 */
static const char* kNIMSysMsgKeyCallbackExt = "callback_ext"; /**< string, (可选) 第三方回调返回的自定义字段 */

/** @}*/ //接收系统消息Json Keys,协议定义

Expand Down
3 changes: 3 additions & 0 deletions nim_sdk/public_define/defines/nim_define/nim_talk_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ typedef struct _nim_talk_recall_extra_params_
const char* pushpayload;
const char* json_extension;
const char* env_config;
const char* attach; /* v8.2.0 第三方回调回来的自定义字段*/
}nim_talk_recall_extra_params;

/** @name 消息撤回通知Json Keys
Expand All @@ -92,6 +93,8 @@ static const char *kNIMRecallMsgKeyMsgExist = "msg_exist"; /**< bool,撤回
static const char *kNIMRecallMsgKeyMsgTime = "msg_time"; /**< long,要撤回消息的创建时间戳(毫秒) */
static const char *kNIMRecallMsgKeyMsgFromNick = "from_nick"; /**< string,要撤回消息的发送者昵称 */
static const char *kNIMRecallMsgKeyOpeAccID = "operator_id"; /**< string,操作者ID */
static const char* kNIMRecallMsgTagCallbackExt = "callback_ext"; /**< string,v8.2.0 第三方回调回来的自定义字段*/
static const char* kNIMRecallMsgTagAttach = "attach"; /**< string,v8.2.0 */
/** @}*/ //消息撤回通知Json Keys

/** @name 接收消息Json Keys
Expand Down
21 changes: 21 additions & 0 deletions nim_sdk/public_define/defines/nim_define/nim_team_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ extern"C"
*/
typedef void (*nim_team_event_cb_func)(int res_code, int notification_id, const char *tid, const char *result, const char *json_extension, const void *user_data);

/** @typedef void (*nim_team_msg_ack_read_ex_cb_func)(const char *tid, const char *success_ids, const char *failure_ids, const char *ignored_ids, const void *user_data);
* 群组消息标注已读回调函数定义
* @param[out] tid 群组id
* @param[out] success_ids json string array标记成功的消息id
* @param[out] failure_ids json string array标记失败的消息id
* @param[out] ignored_ids json string array忽略标记的消息id(不需要标记,或已经标记过的消息id)
* @param[out] user_data APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
* @return void 无返回值
*/
typedef void (*nim_team_msg_ack_read_ex_cb_func)(const char *tid, const char *success_ids, const char *failure_ids, const char *ignored_ids, const void *user_data);

/** @typedef nim_team_event_cb_func nim_team_opt_cb_func
* 群组操作的回调函数定义
*/
Expand All @@ -51,6 +62,16 @@ typedef void (*nim_team_query_all_my_teams_cb_func)(int team_count, const char *
*/
typedef void (*nim_team_query_all_my_teams_info_cb_func)(int team_count, const char *result, const char *json_extension, const void *user_data);

/** @typedef void (*nim_team_get_team_info_list_cb_func)(int code, const char *tinfo_list, const char *fail_tid_list, const void *user_data);
* 查询给定的一组群ID详细信息的回调函数定义
* @param[out] code 返回码
* @param[out] tinfo_list Json string array (Keys SEE MORE `nim_team_def.h` 『群组信息 Json Keys』)
* @param[out] fail_tid_list Json string array,失败的群组id 列表
* @param[out] user_data APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理!
* @return void 无返回值
*/
typedef void (*nim_team_get_team_info_list_cb_func)(int code, const char *tinfo_list, const char *fail_tid_list, const void *user_data);

/** @typedef void (*nim_team_query_my_all_member_infos_cb_func)(int team_count, const char *result, const char *json_extension, const void *user_data)
* 查询我的所有群里我的成员信息的回调函数定义
* @param[out] team_count 有效群组数量
Expand Down
35 changes: 35 additions & 0 deletions nim_sdk/src/c_sdk/nim/api/nim_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ NIM_SDK_DLL_API void nim_session_query_all_recent_session_async(const char *json
*/
NIM_SDK_DLL_API void nim_session_query_all_recent_session_with_last_msg_excluded_type_async(const char *json_extension, nim_session_query_recent_session_cb_func cb, enum NIMMessageType last_msg_excluded_type,const void *user_data);

/** @fn void nim_session_query_all_recent_session_with_last_msg_excluded_type_async_ex(const char *json_extension, nim_session_query_recent_session_cb_func cb, const char *last_msg_excluded_type_list, const void *user_data)
* 查询会话列表,可指定最后一条会话消息要排除掉的类型(列表)
* @param[in] json_extension json扩展参数(备用,目前不需要)
* @param[in] cb 查询会话列表的回调函数, nim_session_query_recent_session_cb_func回调函数定义见nim_session_def.h
* @param[in] last_msg_excluded_type 最后一条会话消息要排除掉的类型,如果不排除任何消息,参数请传入NIMMessageType::kNIMMessageTypeUnknown
* @param[in] user_data APP的自定义用户数据,SDK只负责传回给回调函数cb,不做任何处理!
* @return void 无返回值
*/
NIM_SDK_DLL_API void nim_session_query_all_recent_session_with_last_msg_excluded_type_async_ex(const char* json_extension, nim_session_query_recent_session_cb_func cb, const char* last_msg_excluded_type_list, const void* user_data);


/** @fn void nim_session_delete_recent_session_async(enum NIMSessionType to_type, const char *id, const char *json_extension, nim_session_change_cb_func cb, const void *user_data)
Expand All @@ -81,6 +90,20 @@ NIM_SDK_DLL_API void nim_session_query_all_recent_session_with_last_msg_excluded
*/
NIM_SDK_DLL_API void nim_session_delete_recent_session_async(enum NIMSessionType to_type, const char *id, const char *json_extension, nim_session_change_cb_func cb, const void *user_data);

/** @fn void nim_session_delete_recent_session_async_ex(enum NIMSessionType to_type, const char* id, bool delete_roaming, nim_session_change_cb_func cb, const void* user_data)
* 删除最近联系人
* @param[in] to_type 会话类型
* @param[in] id 对方的account id或者群组tid。
* @param[in] delete_roaming 是否删除漫游消息
* @param[in] cb 最近会话列表项变更的回调函数, nim_session_change_cb_func回调函数定义见nim_session_def.h
* @param[in] user_data APP的自定义用户数据,SDK只负责传回给回调函数cb,不做任何处理!
* @return void 无返回值
* @note 错误码 200:成功
* 0:失败
*/
NIM_SDK_DLL_API void nim_session_delete_recent_session_async_ex(enum NIMSessionType to_type, const char* id, bool delete_roaming, nim_session_change_cb_func cb, const void* user_data);


/** @fn void nim_session_delete_session_roaming_async(enum NIMSessionType to_type, const char *id, const char *json_extension, nim_session_delete_session_roaming_cb_func cb, const void *user_data)
* 删除指定会话的漫游消息
* @param[in] to_type 会话类型
Expand Down Expand Up @@ -119,6 +142,18 @@ NIM_SDK_DLL_API void nim_session_delete_all_recent_session_async(const char *jso
*/
NIM_SDK_DLL_API void nim_session_set_unread_count_zero_async(enum NIMSessionType to_type, const char *id, const char *json_extension, nim_session_change_cb_func cb, const void *user_data);

/** @fn void nim_session_set_multi_unread_count_zero_async(bool super_team, const char* unread_count_zero_info_list, nim_session_multi_change_cb_func cb, const void* user_data);
* 最近联系人项(多条)未读数清零
* @param[in] super_team 是否是超大群
* @param[in] zero_info_list json array 要清零的会话信息列表 示例[{"type":0,"id":"123"},{"type":1,"id":"789"}] 对方的account id或者群组tid。
* @param[in] cb 最近会话列表项变更的回调函数, nim_session_multi_change_cb_func回调函数定义见nim_session_def.h
* @param[in] user_data APP的自定义用户数据,SDK只负责传回给回调函数cb,不做任何处理!
* @return void 无返回值
* @note 错误码 200:成功
* 0:失败
*/
NIM_SDK_DLL_API void nim_session_set_multi_unread_count_zero_async(bool super_team, const char* unread_count_zero_info_list, nim_session_multi_change_cb_func cb, const void* user_data);

/** @fn void nim_session_set_top(enum NIMSessionType to_type, const char *id, bool top, const char *json_extension, nim_session_change_cb_func cb, const void *user_data)
* 设置会话项是否置顶(置顶属性只保存在本地)
* @param[in] to_type 会话类型
Expand Down
25 changes: 24 additions & 1 deletion nim_sdk/src/c_sdk/nim/api/nim_team.h
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,17 @@ NIM_SDK_DLL_API void nim_team_mute_async(const char *tid,
*/
NIM_SDK_DLL_API void nim_team_msg_ack_read(const char *tid, const char *json_msgs, const char *json_extension, nim_team_opt_cb_func cb, const void *user_data);

/** @fn void nim_team_msg_ack_read_ex(const char *tid, const char *json_msgs, const char *json_extension, nim_team_msg_ack_read_ex_cb_func cb, const void *user_data);
* 群消息回执
* @param[in] tid 群组id
* @param[in] json_msgs 需要发送消息回执的群消息json array
* @param[in] json_extension json扩展参数(备用,目前不需要)
* @param[in] cb 回调函数, 定义见nim_team_def.h
* @param[in] user_data APP的自定义用户数据,SDK只负责传回给回调函数cb,不做任何处理!
* @return void 无返回值
*/
NIM_SDK_DLL_API void nim_team_msg_ack_read_ex(const char *tid, const char *json_msgs, const char *json_extension, nim_team_msg_ack_read_ex_cb_func cb, const void *user_data);

/** @fn void nim_team_msg_query_unread_list(const char *tid, const char *json_msg, const char *json_extension, nim_team_opt_cb_func cb, const void *user_data);
* 获取群消息未读成员列表
* @param[in] tid 群组id
Expand Down Expand Up @@ -601,7 +612,19 @@ NIM_SDK_DLL_API void nim_team_get_team_info_batch_sftrans(const char *json_exten
*/
NIM_SDK_DLL_API void nim_team_update_tinfo_local(const char *json_info_list,nim_team_update_tinfo_local_cb_func cb_func, const void *user_data);

/** @fn void nim_team_get_team_info_list(const char *tid_list, nim_team_get_team_info_list_cb_func cb, const void *user_data)
* 查询给定的一组群ID详细信息
* @param[in] tid_list json string array 群组id列表,最多10个
* @param[in] cb 查询给定的一组群ID详细信息的回调函数定义, nim_team_get_team_info_list_cb_func回调函数定义见nim_team_def.h
* @param[in] user_data APP的自定义用户数据,SDK只负责传回给回调函数cb,不做任何处理!
* @return void 无返回值
* @note 错误码 200:成功
* 414:参数错误
* 816:部分成功
*/
NIM_SDK_DLL_API void nim_team_get_team_info_list(const char *tid_list, nim_team_get_team_info_list_cb_func cb, const void* user_data);

#ifdef __cplusplus
};
#endif //__cplusplus
#endif //NIM_SDK_DLL_API_NIM_TEAM_H_
#endif //NIM_SDK_DLL_API_NIM_TEAM_H_
Loading

0 comments on commit 13d826b

Please sign in to comment.