From 0615dea921069a4d785049cb539b6bde923aec33 Mon Sep 17 00:00:00 2001 From: haoxiuwen Date: Tue, 10 Oct 2023 10:21:07 +0800 Subject: [PATCH] modify --- docs/document/ios/reaction.md | 4 ++-- docs/document/ios/room_manage.md | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/document/ios/reaction.md b/docs/document/ios/reaction.md index e272e803a..1a7b50843 100644 --- a/docs/document/ios/reaction.md +++ b/docs/document/ios/reaction.md @@ -43,7 +43,7 @@ Reaction 场景示例如下: ```objectivec // 添加 Reaction。异步方法 -[EMClient.sharedClient.chatManager addReaction:"reaction" toMessage:"messageId" completion:^(EMError * _Nullable error) { +[EMClient.sharedClient.chatManager addReaction:@"reaction" toMessage:@"messageId" completion:^(EMError * _Nullable error) { refreshBlock(error, changeSelectedStateHandle); }]; @@ -62,7 +62,7 @@ Reaction 场景示例如下: ```objectivec // 删除 Reaction。异步方法 -[EMClient.sharedClient.chatManager removeReaction:"reaction" fromMessage:"messageId" completion:^(EMError * _Nullable error) { +[EMClient.sharedClient.chatManager removeReaction:@"reaction" fromMessage:@"messageId" completion:^(EMError * _Nullable error) { refreshBlock(error, changeSelectedStateHandle); }]; diff --git a/docs/document/ios/room_manage.md b/docs/document/ios/room_manage.md index ed6ea659e..5f35cf399 100644 --- a/docs/document/ios/room_manage.md +++ b/docs/document/ios/room_manage.md @@ -43,9 +43,8 @@ 示例代码如下: ```objectivec -EMError *error = nil; -// 同步方法,异步方法见 [EMChatroomManager createChatroomWithSubject:description:invitees:message:maxMembersCount:completion] -EMChatroom *retChatroom = [[EMClient sharedClient].roomManager createChatroomWithSubject:@"aSubject" description:@"aDescription" invitees:@[@"user1",@[user2]]message:@"aMessage" maxMembersCount:aMaxMembersCount error:&error]; +EMError *error; + EMChatroom *chatroom = [[EMClient sharedClient].roomManager createChatroomWithSubject:@"Subject" description:@"description" invitees:@[@"user1",@"user2"] message:@"message" maxMembersCount:100 error:&error]; ``` ### 加入聊天室